Linux packaging: Initial stuff

This commit is contained in:
ROllerozxa 2022-08-08 23:22:34 +02:00
commit 9258f3ab34
7 changed files with 27 additions and 16 deletions

View file

@ -65,7 +65,7 @@ while test $# -gt 0; do
-s|--silent)
echo "only compiling"
run="0"
break
shift
;;
--without-gdb)
debug="0"
@ -77,19 +77,19 @@ while test $# -gt 0; do
;;
-v|--valgrind)
debug="2"
break
shift
;;
--leak)
debug="4"
break
shift
;;
-c|--cachegrind)
debug="3"
break
shift
;;
-t)
do_test="1"
break
shift
;;
--single)
cores="1"

View file

@ -0,0 +1,7 @@
[Desktop Entry]
Name=Principia (principia:// Protocol)
Exec=principia %u
Type=Application
Terminal=false
NoDisplay=true
MimeType=x-scheme-handler/principia;

View file

@ -0,0 +1,9 @@
[Desktop Entry]
Name=Principia
GenericName=Physics-based sandbox building game
Exec=principia
Type=Application
StartupNotify=true
Icon=principia
StartupWMClass=principia
Categories=Game;

BIN
build-linux/principia.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

View file

@ -1,9 +0,0 @@
[Desktop Entry]
name=Principia
Exec=/home/sdac/git/principia/build-linux/principia
Icon=
Terminal=true
Type=Application
Categories=
Comment=Cool
MimeType=x-scheme-handler/principia

View file

@ -9517,6 +9517,9 @@ int _gtk_loop(void *p)
gtk_init(0,0);
// Release versions of Linux will use the user's default GTK theme just fine,
// debug versions not so much... For whatever reason.
#if !defined(TMS_BACKEND_LINUX) || defined(DEBUG)
gtk_rc_parse_string(
"style \"test\" {\n"
@ -9551,6 +9554,7 @@ int _gtk_loop(void *p)
"}\n"
"widget \"*\" style \"test\"\n"
);
#endif
/*
gtk_rc_parse_string(

View file

@ -530,7 +530,7 @@ tbackend_init_surface()
#endif
tms_progressf("Creating window... ");
_window = SDL_CreateWindow("Super Slime Blab", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, _tms.window_width, _tms.window_height, SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN);
_window = SDL_CreateWindow("Principia", SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, _tms.window_width, _tms.window_height, SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN);
if (_window == NULL) {
tms_progressf("ERROR: %s\n", SDL_GetError());
exit(1);
@ -721,7 +721,7 @@ const char *tbackend_get_storage_path(void)
struct passwd *pw = getpwuid(getuid());
strcpy(path, pw->pw_dir);
strcat(path, "/Principia");
strcat(path, "/.principia");
_storage_path = path;
}