@@ -20,10 +20,15 @@ if [ "$(uname)" != "Darwin" ]; then
20
20
# compile -------------------------------------------------------------------- do not use -O3 below. zxdb cache will contain 0-byte files otherwise.
21
21
gcc src/app.c -I src -o ./Spectral.linux -O2 -DNDEBUG=3 -D_GNU_SOURCE -Wno-unused-result -Wno-unused-value -Wno-format -Wno-multichar -Wno-pointer-sign -Wno-string-plus-int -Wno-empty-body -lm -lX11 -lGL -lasound -lpthread -ludev $* || exit
22
22
upx -9 Spectral.linux
23
+
24
+ # embed zxdb -----------------------------------------------------------------
23
25
# src/res/embed.linux Spectral.linux @SpectralEmBeDdEd
24
26
# src/res/embed.linux Spectral.linux src/res/zxdb/Spectral.db.gz
25
27
# src/res/embed.linux Spectral.linux @SpectralEmBeDdEd
26
- cat Spectral.linux src/res/embed src/res/zxdb/Spectral.db.gz src/res/embed > Spectral.linux
28
+ # cat Spectral.linux src/res/embed src/res/zxdb/Spectral.db.gz src/res/embed > Spectral.linux
29
+ dd if=src/res/embed >> Spectral.linux
30
+ dd if=src/res/zxdb/Spectral.db.gz >> Spectral.linux
31
+ dd if=src/res/embed >> Spectral.linux
27
32
28
33
fi
29
34
@@ -32,10 +37,15 @@ if [ "$(uname)" = "Darwin" ]; then
32
37
# compile --------------------------------------------------------------------
33
38
export SDKROOT=$( xcrun --show-sdk-path)
34
39
gcc -ObjC src/app.c -I src -o ./Spectral.osx -O3 -DNDEBUG=3 -Wno-unused-result -Wno-unused-value -Wno-format -Wno-multichar -Wno-pointer-sign -Wno-string-plus-int -Wno-empty-body -Wno-dangling-else -framework cocoa -framework iokit -framework CoreFoundation -framework CoreAudio -framework AudioToolbox -framework OpenGL -lm $* || exit
40
+
41
+ # embed zxdb
35
42
# src/res/embed.osx Spectral.osx @SpectralEmBeDdEd
36
43
# src/res/embed.osx Spectral.osx src/res/zxdb/Spectral.db.gz
37
44
# src/res/embed.osx Spectral.osx @SpectralEmBeDdEd
38
- cat Spectral.osx src/res/embed src/res/zxdb/Spectral.db.gz src/res/embed > Spectral.osx
45
+ # cat Spectral.osx src/res/embed src/res/zxdb/Spectral.db.gz src/res/embed > Spectral.osx
46
+ dd if=src/res/embed >> Spectral.osx
47
+ dd if=src/res/zxdb/Spectral.db.gz >> Spectral.osx
48
+ dd if=src/res/embed >> Spectral.osx
39
49
40
50
# embed icon and make .app
41
51
test -d Spectral.app && rm -rf Spectral.app
@@ -214,7 +224,7 @@ rem )
214
224
215
225
where /q rcedit-x64 || curl -LO https://github.com/electron/rcedit/releases/download/v2.0.0/rcedit-x64.exe
216
226
where /q rcedit-x64 && rcedit-x64 " Spectral.exe" --set-file-version " !year!.!month!.!today!.!today!!month!"
217
- where /q rcedit-x64 && rcedit-x64 " Spectral.exe" --set-product-version " 1.041 Spectral"
227
+ where /q rcedit-x64 && rcedit-x64 " Spectral.exe" --set-product-version " 1.05-WIP Spectral"
218
228
where /q rcedit-x64 && rcedit-x64 " Spectral.exe" --set-icon src\r es\i mg\n oto_1f47b.ico
219
229
rem where /q rcedit-x64 && rcedit-x64 " Spectral.exe" --set-version-string " version" " value"
220
230
rem where /q rcedit-x64 && rcedit-x64 " Spectral.exe" --set-resource-string " version" " value"
0 commit comments