about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--premake5.lua8
1 files changed, 5 insertions, 3 deletions
diff --git a/premake5.lua b/premake5.lua
index 3f82255..d5ce869 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -57,6 +57,7 @@ project("Pong")
     else
         links {RaylibStaticLibrary, "m", "pthread", "dl"}
     end
+
     newaction {
         trigger = "install",
         description = "Install the game to prefix.",
@@ -64,11 +65,9 @@ project("Pong")
             os.executef("mkdir -pv %s/Pong", prefix)
             os.executef("cp -rv resources/ %s/Pong/", prefix)
             os.executef("install -Dvm755 bin/*/Pong %s/Pong/pong", prefix)
-            if(flatpak == true) then
-                os.executef("install -Dvm755 src/flatpak_launch.sh %s/bin/launch.sh", prefix)
-            end
         end
     }
+
     newaction {
         trigger = "clean",
         description = "Clean the work environment.",
@@ -78,5 +77,8 @@ project("Pong")
             os.executef("rm -rvf %s/app", _MAIN_SCRIPT_DIR)
             os.executef("rm -vf %s/Makefile", _MAIN_SCRIPT_DIR)
             os.executef("rm -vf %s/Pong.make", _MAIN_SCRIPT_DIR)
+            os.executef("rm -rvf %s/flatpak_repo", _MAIN_SCRIPT_DIR)
+            os.executef("rm -rvf %s/.flatpak-builder", _MAIN_SCRIPT_DIR)
+            os.executef("rm -rvf %s/build-dir", _MAIN_SCRIPT_DIR)
         end
     }
\ No newline at end of file