Skip to content

Commit bb5cbd8

Browse files
committed
Remove date string from output filename
1 parent e85b6f8 commit bb5cbd8

File tree

2 files changed

+9
-34
lines changed

2 files changed

+9
-34
lines changed

.github/workflows/appimage.yml

+1-6
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,6 @@ jobs:
4040
export HOSTUID=$(id -u) HOSTGID=$(id -g)
4141
docker compose -f ./docker-compose.yml run --rm build
4242
43-
- name: Create sha256sum
44-
run: |
45-
IMAGE_FILENAME=$(basename `find out/*AppImage`)
46-
echo "IMAGE_FILENAME=$IMAGE_FILENAME" >> $GITHUB_ENV
47-
4843
- name: Release AppImage
4944
if: ${{ github.ref == 'refs/heads/trunk' }}
5045
uses: ncipollo/release-action@v1
@@ -57,7 +52,7 @@ jobs:
5752
omitNameDuringUpdate: True
5853
omitBodyDuringUpdate: True
5954
tag: v${{ env.VERSION }}
60-
replacesArtifacts: false
55+
replacesArtifacts: true
6156
- name: Upload Artifacts
6257
if: ${{ github.ref != 'refs/heads/trunk' }}
6358
uses: actions/upload-artifact@v4

make-appimage.sh

+8-28
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
set -ev
44

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+
512
if [ -z "$VERSION" ]; then
613
echo "VERSION must be set"
714
exit 1
@@ -90,20 +97,6 @@ sha1sum -c $source_sum
9097
if [ ! -r "$SOURCE_ROOT/source/main.cpp" ]; then
9198
tar -xJf $source
9299
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
107100

108101
cd "$SOURCE_ROOT/libraries"
109102
/bin/bash -c 'JOBS=$(nproc) ./build-source-libs.sh \
@@ -167,23 +160,11 @@ cp -a binaries/data/tools $APPDIR/usr/data # for Atlas
167160
mkdir -p $APPDIR/usr/data/mods
168161
cp -a binaries/data/mods/mod $APPDIR/usr/data/mods
169162

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-
176163
cd $SOURCE_ROOT
177164
cp -a binaries/data/mods/public $APPDIR/usr/data/mods
178165

179166
cd "$WORKSPACE"
180167

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-
187168
# Set up output directory
188169
OUT_DIR="$WORKSPACE/out"
189170
if [ ! -d "$OUT_DIR" ]; then
@@ -210,8 +191,7 @@ linuxdeploy \
210191
--plugin gtk
211192
fi
212193

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"
215195

216196
REPO="0ad-appimage"
217197
TAG="latest"

0 commit comments

Comments
 (0)