2
2
3
3
set -ev
4
4
5
+ if [ -z " $DOCKER_BUILD " ]; then
6
+ echo " This script is only meant to be used with the linuxdeploy build"
7
+ echo " helper container."
8
+ echo " See the 0ad-appimage README for details."
9
+ exit 1
10
+ fi
11
+
5
12
if [ -z " $VERSION " ]; then
6
13
echo " VERSION must be set"
7
14
exit 1
@@ -90,20 +97,6 @@ sha1sum -c $source_sum
90
97
if [ ! -r " $SOURCE_ROOT /source/main.cpp" ]; then
91
98
tar -xJf $source
92
99
fi
93
- # cd "$SOURCE_ROOT"
94
- # build/workspaces/clean-workspaces.sh
95
- # # Clean up some extra cruft not picked up by clean-workspaces.sh
96
- # find binaries/system/ -type f ! -name readme.txt -delete
97
- # rm -f libraries/fcollada/lib/*.a
98
- # rm -f build/premake/.*.tmp
99
- # rm -rf libraries/source/spidermonkey/lib
100
- # rm -f libraries/source/cxxtest-4.4/python/cxxtest/*.pyc
101
- # rm -f libraries/source/fcollada/lib/*
102
- # rm -rf libraries/source/spidermonkey/include-unix-*
103
- # rm -rf libraries/source/spidermonkey/mozjs-78.6.0
104
- # rm -f libraries/source/nvtt/lib/*.so
105
- # rm -f source/ps/tests/stub_impl_hack.cpp
106
- # fi
107
100
108
101
cd " $SOURCE_ROOT /libraries"
109
102
/bin/bash -c ' JOBS=$(nproc) ./build-source-libs.sh \
@@ -167,23 +160,11 @@ cp -a binaries/data/tools $APPDIR/usr/data # for Atlas
167
160
mkdir -p $APPDIR /usr/data/mods
168
161
cp -a binaries/data/mods/mod $APPDIR /usr/data/mods
169
162
170
- # # Hopefully prevent out-of-space failure when running on a GitHub hosted runner
171
- # if [ -n "$ACTION_WORKSPACE" ]; then
172
- # cd "$SOURCE_ROOT/build/workspaces"
173
- # ./clean-workspaces.sh
174
- # fi
175
-
176
163
cd $SOURCE_ROOT
177
164
cp -a binaries/data/mods/public $APPDIR /usr/data/mods
178
165
179
166
cd " $WORKSPACE "
180
167
181
- # # Hopefully prevent out-of-space failure when running on a GitHub hosted runner
182
- # echo "Removing data from source tree (already copied to ${APPDIR})..."
183
- # if [ -n "$ACTION_WORKSPACE" ]; then
184
- # rm -rf "$SOURCE_ROOT/binaries/data"
185
- # fi
186
-
187
168
# Set up output directory
188
169
OUT_DIR=" $WORKSPACE /out"
189
170
if [ ! -d " $OUT_DIR " ]; then
@@ -210,8 +191,7 @@ linuxdeploy \
210
191
--plugin gtk
211
192
fi
212
193
213
- DATE_STR=$( date +%y%m%d%H%M)
214
- OUT_APPIMAGE=" 0ad-$VERSION -$DATE_STR -$ARCH .AppImage"
194
+ OUT_APPIMAGE=" 0ad-$VERSION -$ARCH .AppImage"
215
195
216
196
REPO=" 0ad-appimage"
217
197
TAG=" latest"
0 commit comments