1 | #!/bin/bash
|
---|
2 |
|
---|
3 | cd ../../AI/StdAI
|
---|
4 | lazbuild --build-mode=Release StdAI.lpi
|
---|
5 | mv libstdai.so libstdai-amd64.so
|
---|
6 | cd ../..
|
---|
7 | lazbuild --build-mode=Release Integrated.lpi
|
---|
8 | cd Install/appimage
|
---|
9 | install -Dm755 ../../c-evo -t AppDir/usr/bin
|
---|
10 | install -Dm644 ../../Language.txt -t AppDir/usr/share/c-evo
|
---|
11 | install -Dm644 ../../Language2.txt -t AppDir/usr/share/c-evo
|
---|
12 | install -Dm644 ../../Fonts.txt -t AppDir/usr/share/c-evo
|
---|
13 | install -Dm644 ../common/c-evo.desktop AppDir/net.zdechov.app.C-evo.desktop
|
---|
14 | install -Dm644 ../common/c-evo.desktop AppDir/usr/share/applications/net.zdechov.app.C-evo.desktop
|
---|
15 | install -Dm644 ../common/c-evo.xml -t AppDir/usr/share/mime/packages
|
---|
16 | install -Dm644 ../common/c-evo_256x256.png AppDir/c-evo.png
|
---|
17 | install -Dm644 ../common/c-evo_256x256.png AppDir/usr/share/icons/hicolor/256x256/apps/c-evo.png
|
---|
18 | install -Dm644 ../common/c-evo_256x256.png AppDir/usr/share/pixmaps/application-cevo.png
|
---|
19 | install -Dm644 ../common/c-evo_256x256.png AppDir/usr/share/pixmaps/application-cevomap.png
|
---|
20 | install -Dm644 ../flatpak/net.zdechov.app.C-evo.metainfo.xml AppDir/usr/share/metainfo/net.zdechov.app.C-evo.appdata.xml
|
---|
21 | sed -i '/<url type="vcs-browser">https:\/\/app.zdechov.net\/c-evo\/browser<\/url>/d' AppDir/usr/share/metainfo/net.zdechov.app.C-evo.appdata.xml
|
---|
22 | install -Dm644 ../../AI/StdAI/libstdai-amd64.so -t AppDir/usr/share/c-evo/AI/StdAI
|
---|
23 | install -Dm644 ../../AI/StdAI/StdAI.ai.txt -t AppDir/usr/share/c-evo/AI/StdAI
|
---|
24 | install -Dm644 ../../AI/StdAI/StdAI.png -t AppDir/usr/share/c-evo/AI/StdAI
|
---|
25 | cp -r ../../Graphics AppDir/usr/share/c-evo
|
---|
26 | cp -r ../../Help AppDir/usr/share/c-evo
|
---|
27 | cp -r ../../Sounds AppDir/usr/share/c-evo
|
---|
28 | cp -r ../../Music AppDir/usr/share/c-evo
|
---|
29 | cp -r ../../Tribes AppDir/usr/share/c-evo
|
---|
30 | cp -r ../../Localization AppDir/usr/share/c-evo
|
---|
31 | cp -r ../../Maps AppDir/usr/share/c-evo
|
---|
32 | cp -r ../../Saved AppDir/usr/share/c-evo
|
---|
33 | cp -r "../../AI Template" AppDir/usr/share/c-evo
|
---|
34 |
|
---|
35 | install -Dm755 AppRun -t AppDir
|
---|
36 | wget -nc https://github.com/AppImage/appimagetool/releases/download/continuous/appimagetool-x86_64.AppImage
|
---|
37 | chmod +x appimagetool-x86_64.AppImage
|
---|
38 | ARCH=x86_64 ./appimagetool-x86_64.AppImage AppDir C-evo-x86_64.AppImage
|
---|