Compare commits

...

2 Commits

Author SHA1 Message Date
d4f83e11db add .desktop icon to package 2026-03-05 02:05:02 +01:00
db588bd57b fix conditional threadpool include 2026-03-05 02:04:48 +01:00
2 changed files with 12 additions and 4 deletions

View File

@ -276,7 +276,17 @@ rec {
# The wrapper enters the correct working dir, so fonts/shaders/presets are available # The wrapper enters the correct working dir, so fonts/shaders/presets are available
mkdir -p $out/bin mkdir -p $out/bin
makeWrapper $out/lib/${pname} $out/bin/${pname} --chdir "${placeholder "out"}/lib" makeWrapper $out/lib/${pname} $out/bin/${pname} --chdir "$out/lib"
# Generate a .desktop file
mkdir -p $out/share/applications
cat <<INI > $out/share/applications/${pname}.desktop
[Desktop Entry]
Terminal=true
Name=PuzzleSpaces
Exec=$out/bin/${pname} %f
Type=Application
INI
''; '';
}; };

View File

@ -16,7 +16,6 @@
#include <tracy/Tracy.hpp> #include <tracy/Tracy.hpp>
#endif #endif
#ifdef THREADPOOL
#if defined(_WIN32) #if defined(_WIN32)
#define NOGDI // All GDI defines and routines #define NOGDI // All GDI defines and routines
#define NOUSER // All USER defines and routines #define NOUSER // All USER defines and routines
@ -28,7 +27,6 @@
#undef near #undef near
#undef far #undef far
#endif #endif
#endif
// Window // Window
constexpr int INITIAL_WIDTH = 600; constexpr int INITIAL_WIDTH = 600;
@ -93,4 +91,4 @@ constexpr Color BLOCK_COLOR = DARKBLUE;
constexpr Color TARGET_BLOCK_COLOR = RED; constexpr Color TARGET_BLOCK_COLOR = RED;
constexpr Color WALL_COLOR = BLACK; constexpr Color WALL_COLOR = BLACK;
#endif #endif