Skip to content

Commit

Permalink
feat: support appimage builder
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasXu0 committed Aug 22, 2023
1 parent 6f80a70 commit 35153b5
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
cat CHANGELOG.md | sed -e '/./{H;$!d;}' -e "x;/##\ Version\ ${{ github.ref_name }}/"'!d;' >> ${{ env.RELEASE_NOTES_PATH }}
- name: Create release
if: github.run_number == 1
id: create_release
uses: actions/create-release@v1
env:
Expand Down Expand Up @@ -403,15 +402,20 @@ jobs:
flutter config --enable-linux-desktop
dart ./scripts/flutter_release_build/build_flowy.dart run . ${{ github.ref_name }}
- name: Archive Assert
- name: Archive Asset
working-directory: ${{ env.LINUX_APP_RELEASE_PATH }}
run: tar -czf ${{ env.LINUX_ZIP_NAME }} *

- name: Build Linux package (deb)
- name: Build Linux package (.deb)
working-directory: frontend
run: |
sh scripts/linux_distribution/deb/build_deb.sh ${{ env.LINUX_APP_RELEASE_PATH }} ${{ github.ref_name }} ${{ env.LINUX_PACKAGE_NAME }}
- name: Build Linux package (.AppImage)
working-directory: frontend
run: |
sh scripts/linux_distribution/appimage/build_appimage.sh.sh ${{ github.ref_name }}
- name: Upload Asset
id: upload-release-asset
uses: actions/upload-release-asset@v1
Expand All @@ -423,7 +427,18 @@ jobs:
asset_name: ${{ env.LINUX_ZIP_NAME }}
asset_content_type: application/octet-stream

- name: Upload Asset Install Package
- name: Upload AppImage
id: upload-appimage-package
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ needs.create-release.outputs.upload_url }}
asset_path: frontend/AppFlowy-${{ github.ref_name }}-x86_64.AppImage
asset_name: AppFlowy-${{ github.ref_name }}-x86_64.AppImage
asset_content_type: application/octet-stream

- name: Upload Debian package
id: upload-release-asset-install-package
uses: actions/upload-release-asset@v1
env:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

VERSION=$1

wget -O appimage-builder-x86_64.AppImage https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage
chmod +x appimage-builder-x86_64.AppImage

# install (optional)
sudo mv appimage-builder-x86_64.AppImage /usr/local/bin/appimage-builder

# update version
grep -rl "\[CHANGE_THIS\]" scripts/linux_distribution/appimage/AppImageBuilder.yml | xargs sed -i "s/\[CHANGE_THIS\]/$VERSION/"

Expand Down

0 comments on commit 35153b5

Please sign in to comment.