Skip to content

Commit

Permalink
don't build single-file bundles
Browse files Browse the repository at this point in the history
  • Loading branch information
USA-RedDragon committed Nov 28, 2023
1 parent c09ace3 commit 8886791
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 46 deletions.
18 changes: 0 additions & 18 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,24 +58,6 @@ jobs:
- name: Build Flatpak
run: |
./build.sh sign
# Now we have a com.jagex.Launcher.flatpak file in the root of the repository and an updated repo/ repository.
- name: Create release
id: create-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.run_number }}${{ github.run_attempt }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="Release $tag" \
--generate-notes
echo "tag=$tag" >> $GITHUB_OUTPUT
- name: Upload Flatpak
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.create-release.outputs.tag }}
run:
gh release upload "$tag" --repo="$GITHUB_REPOSITORY" com.jagex.Launcher.flatpak
- name: Push Flatpak repository
run: |
git config --global user.name "GitHub Actions"
Expand Down
28 changes: 0 additions & 28 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,31 +52,3 @@ if [[ ${DOSIGN} -eq 0 ]]; then
flatpak build-export repo out stable
fi
flatpak build-update-repo ${GPG_ARGS} repo --title="Jagex Launcher" --generate-static-deltas --default-branch=stable

flatpak build-bundle ${GPG_ARGS} --repo-url=https://jagexlauncher.flatpak.mcswain.dev --runtime-repo=https://flathub.org/repo/flathub.flatpakrepo repo com.jagex.Launcher.flatpak com.jagex.Launcher stable &
PID=$!

COUNTER=0
# Timeout after 1 hour
MAX_COUNTER=3600
while kill -0 $PID 2> /dev/null; do
NUM_DOT=$((COUNTER%5))
DOTS=$(printf '.%.0s' $(seq 0 $NUM_DOT))
# Overwrite the line
echo "Exporting flatpak${DOTS}"
COUNTER=$((COUNTER+1))
if [[ ${COUNTER} -gt ${MAX_COUNTER} ]]; then
echo "Timed out after 1 hour"
exit 1
fi
sleep 1
done

# Check exit code
wait $PID
if [[ $? -ne 0 ]]; then
echo "Failed to export flatpak"
exit 1
fi

echo "Built flatpak to com.jagex.Launcher.flatpak"

0 comments on commit 8886791

Please sign in to comment.