Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/flutter_build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ runs:
id: flutter
uses: subosito/flutter-action@v2
with:
channel: "stable"
channel: "master"
flutter-version: ${{ inputs.flutter_version }}
cache: true

Expand Down
19 changes: 15 additions & 4 deletions .github/workflows/flutter_ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,14 @@ jobs:
strategy:
fail-fast: true
matrix:
os: [ ubuntu-latest ]
os: [ ubuntu-latest, ubuntu-24.04-arm ]
include:
- os: ubuntu-latest
flutter_profile: development-linux-x86_64
target: x86_64-unknown-linux-gnu
- os: ubuntu-24.04-arm
flutter-profile: development-linux-aarch64
target: aarch64-unknown-linux-gnu
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -128,11 +131,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
os: [ ubuntu-latest, ubuntu-24.04-arm ]
include:
- os: ubuntu-latest
flutter_profile: development-linux-x86_64
target: x86_64-unknown-linux-gnu
- os: ubuntu-24.04-arm
flutter-profile: development-linux-aarch64
target: aarch64-unknown-linux-gnu
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -221,11 +227,14 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
os: [ ubuntu-latest, ubuntu-24.04-arm ]
include:
- os: ubuntu-latest
flutter_profile: development-linux-x86_64
target: x86_64-unknown-linux-gnu
- os: ubuntu-24.04-arm
flutter-profile: development-linux-aarch64
target: aarch64-unknown-linux-gnu
runs-on: ${{ matrix.os }}

steps:
Expand Down Expand Up @@ -345,11 +354,13 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
os: [ ubuntu-latest, ubuntu-24.04-arm ]
test_number: [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ]
include:
- os: ubuntu-latest
target: "x86_64-unknown-linux-gnu"
- os: ubuntu-24.04-arm
target: "arm64-unknown-linux-gnu"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout source code
Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -323,13 +323,13 @@ jobs:
needs: create-release
env:
LINUX_APP_RELEASE_PATH: frontend/appflowy_flutter/product/${{ github.ref_name }}/linux/Release
LINUX_ZIP_NAME: AppFlowy-${{ matrix.job.target }}-x86_64.tar.gz
LINUX_PACKAGE_DEB_NAME: AppFlowy-${{ github.ref_name }}-linux-x86_64.deb
LINUX_PACKAGE_RPM_NAME: AppFlowy-${{ github.ref_name }}-linux-x86_64.rpm
LINUX_PACKAGE_TMP_RPM_NAME: AppFlowy-${{ github.ref_name }}-2.x86_64.rpm
LINUX_PACKAGE_TMP_APPIMAGE_NAME: AppFlowy-${{ github.ref_name }}-x86_64.AppImage
LINUX_PACKAGE_APPIMAGE_NAME: AppFlowy-${{ github.ref_name }}-linux-x86_64.AppImage
LINUX_PACKAGE_ZIP_NAME: AppFlowy-${{ github.ref_name }}-linux-x86_64.tar.gz
LINUX_ZIP_NAME: AppFlowy-${{ matrix.job.target }}-${{ matrix.job.arch }}.tar.gz
LINUX_PACKAGE_DEB_NAME: AppFlowy-${{ github.ref_name }}-linux-${{ matrix.job.arch }}.deb
LINUX_PACKAGE_RPM_NAME: AppFlowy-${{ github.ref_name }}-linux-${{ matrix.job.arch }}.rpm
LINUX_PACKAGE_TMP_RPM_NAME: AppFlowy-${{ github.ref_name }}-2.${{ matrix.job.arch }}.rpm
LINUX_PACKAGE_TMP_APPIMAGE_NAME: AppFlowy-${{ github.ref_name }}-${{ matrix.job.arch }}.AppImage
LINUX_PACKAGE_APPIMAGE_NAME: AppFlowy-${{ github.ref_name }}-linux-${{ matrix.job.arch }}.AppImage
LINUX_PACKAGE_ZIP_NAME: AppFlowy-${{ github.ref_name }}-linux-${{ matrix.job.arch }}.tar.gz

strategy:
fail-fast: false
Expand All @@ -342,6 +342,13 @@ jobs:
extra-build-args: "",
flutter_profile: production-linux-x86_64,
}
- {
arch: arm64,
target: arm64-unknown-linux-gnu,
os: ubuntu-22.04-arm,
extra-build-args: "",
flutter_profile: production-linux-arm64,
}
steps:
- name: Checkout source code
uses: actions/checkout@v4
Expand Down Expand Up @@ -403,6 +410,7 @@ jobs:
cp -r ${{ env.LINUX_PACKAGE_TMP_RPM_NAME }} ${{ env.LINUX_PACKAGE_RPM_NAME }}

- name: Build Linux package (.AppImage)
if: ${{ matrix.job.target == 'x86_64-unknown-linux-gnu' }}
working-directory: frontend
continue-on-error: true
run: |
Expand Down Expand Up @@ -444,6 +452,7 @@ jobs:
asset_content_type: application/octet-stream

- name: Upload AppImage package
if: ${{ matrix.job.target == 'x86_64-unknown-linux-gnu' }}
id: upload-release-asset-install-package-appimage
uses: actions/upload-release-asset@v1
env:
Expand Down
2 changes: 1 addition & 1 deletion frontend/scripts/linux_distribution/deb/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: AppFlowy
Version: [CHANGE_THIS]
Depends: libkeybinder-3.0-0
Architecture: amd64
Architecture: [ARCHITECTURE]
Essential: no
Priority: optional
Maintainer: AppFlowy
Expand Down
11 changes: 11 additions & 0 deletions frontend/scripts/linux_distribution/deb/build_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@
LINUX_RELEASE_PRODUCTION=$1
VERSION=$2
PACKAGE_NAME=$3
ARCHITECTURE=$4

if [ -z "$ARCHITECTURE" ] || [ "$ARCHITECTURE" = "amd64" ]; then
ARCHITECTURE=amd64
elif [ "$ARCHITECTURE" != "arm64" ]; then
echo "Supported architectures are only amd64 and arm64."
exit 1
fi



# Define package folders
PACKAGE=$LINUX_RELEASE_PRODUCTION/package
Expand All @@ -24,6 +34,7 @@ cp -R ./scripts/linux_distribution/deb/DEBIAN $PACKAGE
chmod 0755 $DEBIAN/postinst
chmod 0755 $DEBIAN/postrm
grep -rl "\[CHANGE_THIS\]" $DEBIAN/control | xargs sed -i "s/\[CHANGE_THIS\]/$VERSION/"
grep -rl "\[ARCHITECTURE\]" $DEBIAN/control | xargs sed -i "s/\[ARCHITECTURE\]/$ARCHITECTURE/"

cp -fR $LINUX_RELEASE_PRODUCTION/AppFlowy $LIB
cp ./scripts/linux_distribution/deb/AppFlowy.desktop $APPLICATIONS
Expand Down
Loading