Skip to content

Commit

Permalink
Remove date string from output filename
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Feb 1, 2025
1 parent e85b6f8 commit bb5cbd8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 34 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@ jobs:
export HOSTUID=$(id -u) HOSTGID=$(id -g)
docker compose -f ./docker-compose.yml run --rm build
- name: Create sha256sum
run: |
IMAGE_FILENAME=$(basename `find out/*AppImage`)
echo "IMAGE_FILENAME=$IMAGE_FILENAME" >> $GITHUB_ENV
- name: Release AppImage
if: ${{ github.ref == 'refs/heads/trunk' }}
uses: ncipollo/release-action@v1
Expand All @@ -57,7 +52,7 @@ jobs:
omitNameDuringUpdate: True
omitBodyDuringUpdate: True
tag: v${{ env.VERSION }}
replacesArtifacts: false
replacesArtifacts: true
- name: Upload Artifacts
if: ${{ github.ref != 'refs/heads/trunk' }}
uses: actions/upload-artifact@v4
Expand Down
36 changes: 8 additions & 28 deletions make-appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

set -ev

if [ -z "$DOCKER_BUILD" ]; then
echo "This script is only meant to be used with the linuxdeploy build"
echo "helper container."
echo "See the 0ad-appimage README for details."
exit 1
fi

if [ -z "$VERSION" ]; then
echo "VERSION must be set"
exit 1
Expand Down Expand Up @@ -90,20 +97,6 @@ sha1sum -c $source_sum
if [ ! -r "$SOURCE_ROOT/source/main.cpp" ]; then
tar -xJf $source
fi
#cd "$SOURCE_ROOT"
#build/workspaces/clean-workspaces.sh
## Clean up some extra cruft not picked up by clean-workspaces.sh
#find binaries/system/ -type f ! -name readme.txt -delete
#rm -f libraries/fcollada/lib/*.a
#rm -f build/premake/.*.tmp
#rm -rf libraries/source/spidermonkey/lib
#rm -f libraries/source/cxxtest-4.4/python/cxxtest/*.pyc
#rm -f libraries/source/fcollada/lib/*
#rm -rf libraries/source/spidermonkey/include-unix-*
#rm -rf libraries/source/spidermonkey/mozjs-78.6.0
#rm -f libraries/source/nvtt/lib/*.so
#rm -f source/ps/tests/stub_impl_hack.cpp
#fi

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

## Hopefully prevent out-of-space failure when running on a GitHub hosted runner
#if [ -n "$ACTION_WORKSPACE" ]; then
#cd "$SOURCE_ROOT/build/workspaces"
#./clean-workspaces.sh
#fi

cd $SOURCE_ROOT
cp -a binaries/data/mods/public $APPDIR/usr/data/mods

cd "$WORKSPACE"

## Hopefully prevent out-of-space failure when running on a GitHub hosted runner
#echo "Removing data from source tree (already copied to ${APPDIR})..."
#if [ -n "$ACTION_WORKSPACE" ]; then
#rm -rf "$SOURCE_ROOT/binaries/data"
#fi

# Set up output directory
OUT_DIR="$WORKSPACE/out"
if [ ! -d "$OUT_DIR" ]; then
Expand All @@ -210,8 +191,7 @@ linuxdeploy \
--plugin gtk
fi

DATE_STR=$(date +%y%m%d%H%M)
OUT_APPIMAGE="0ad-$VERSION-$DATE_STR-$ARCH.AppImage"
OUT_APPIMAGE="0ad-$VERSION-$ARCH.AppImage"

REPO="0ad-appimage"
TAG="latest"
Expand Down

0 comments on commit bb5cbd8

Please sign in to comment.