about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--.gitignore1
-rw-r--r--premake5.lua1
-rw-r--r--src/flatpak/flatpak_launch.sh4
-rw-r--r--src/flatpak/raylib-4.0.0.tar.gzbin0 -> 30985161 bytes
-rw-r--r--src/main.c3
5 files changed, 5 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index afe90e4..e828f53 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,7 +4,6 @@ build/
 *.o
 pong
 .flatpak-builder
-flatpak/
 flatpak_repo/
 build-dir/
 Makefile
diff --git a/premake5.lua b/premake5.lua
index 21d3845..48469bc 100644
--- a/premake5.lua
+++ b/premake5.lua
@@ -26,6 +26,7 @@ project("Pong")
             os.executef("rm -rvf %s/.flatpak-builder", _MAIN_SCRIPT_DIR)
             os.executef("rm -rvf %s/build-dir", _MAIN_SCRIPT_DIR)
             os.executef("rm -vf %s/*.flatpak", _MAIN_SCRIPT_DIR)
+            os.executef("rm -rf %s/flatpak", _MAIN_SCRIPT_DIR)
             os.exit(0)
         end
     }
diff --git a/src/flatpak/flatpak_launch.sh b/src/flatpak/flatpak_launch.sh
new file mode 100644
index 0000000..1312ef3
--- /dev/null
+++ b/src/flatpak/flatpak_launch.sh
@@ -0,0 +1,4 @@
+#!/bin/sh
+# This file is only for flatpak.
+DIRECTORY="$(dirname $0)"
+cd $DIRECTORY/../Pong && ./pong $@
\ No newline at end of file
diff --git a/src/flatpak/raylib-4.0.0.tar.gz b/src/flatpak/raylib-4.0.0.tar.gz
new file mode 100644
index 0000000..02dc55c
--- /dev/null
+++ b/src/flatpak/raylib-4.0.0.tar.gz
Binary files differdiff --git a/src/main.c b/src/main.c
index 21fbe8f..5acec18 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,7 +1,4 @@
 #include "pong.h"
-#include "sounds.h"
-
-
 
 int Difficulty = 1;
 SDL_atomic_t Ticks;