Skip to content

Commit 5b46fc4

Browse files
committed
feat: support tar.xz package type
1 parent 0640e92 commit 5b46fc4

File tree

3 files changed

+7
-11
lines changed

3 files changed

+7
-11
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ jobs:
362362
- {
363363
arch: x86_64,
364364
target: x86_64-unknown-linux-gnu,
365-
os: ubuntu-20.04,
365+
os: ubuntu-22.04,
366366
extra-build-args: "",
367367
flutter_profile: production-linux-x86_64,
368368
}

frontend/appflowy_flutter/linux/packaging/appimage/make_config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ categories:
1818

1919
startup_notify: true
2020

21-
supportedMimeType: x-scheme-handler/appflowy-flutter
21+
supported_mime_type: x-scheme-handler/appflowy-flutter

frontend/scripts/flutter_release_build/build_linux.sh

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83,16 +83,16 @@ while [ $# -gt 0 ]; do
8383
done
8484

8585
clear_cache() {
86-
echo "Clearing the cache..."
86+
echo -e "Clearing the cache..."
8787
rm -rf appflowy_flutter/build/$VERSION/
8888
}
8989

9090
info() {
91-
echo "🚀 \033[32m$1\033[0m"
91+
echo -e "🚀 \033[32m$1\033[0m"
9292
}
9393

9494
error() {
95-
echo "🚨 \033[31m$1\033[0m"
95+
echo -e "🚨 \033[31m$1\033[0m"
9696
}
9797

9898
# Validate build type argument
@@ -201,7 +201,7 @@ build_tar_xz() {
201201
fi
202202

203203
# step 2: unzip the zip package
204-
unzip appflowy_flutter/build/$VERSION/AppFlowy-$VERSION-linux-x86_64.zip -d appflowy_flutter/build/$VERSION/
204+
unzip appflowy_flutter/build/$VERSION/AppFlowy-$VERSION-linux-x86_64.zip -d appflowy_flutter/build/$VERSION/AppFlowy-$VERSION-linux-x86_64
205205

206206
# check if the AppFlowy directory exists
207207
if [ ! -d "appflowy_flutter/build/$VERSION/AppFlowy-$VERSION-linux-x86_64" ]; then
@@ -210,10 +210,7 @@ build_tar_xz() {
210210
fi
211211

212212
# step 3: build the tar.xz package
213-
tar -cJvf appflowy_flutter/build/$VERSION/AppFlowy-$VERSION-linux-x86_64.tar.xz -C appflowy_flutter/build/$VERSION/ AppFlowy-$VERSION-linux-x86_64
214-
215-
# step 4: clean up the extracted directory
216-
rm -rf appflowy_flutter/build/$VERSION/AppFlowy-$VERSION-linux-x86_64
213+
tar -cJvf appflowy_flutter/build/$VERSION/AppFlowy-$VERSION-linux-x86_64.tar.xz appflowy_flutter/build/$VERSION/AppFlowy-$VERSION-linux-x86_64/*
217214

218215
info "Tar.xz package built successfully. The tar.xz package is located at appflowy_flutter/build/$VERSION/AppFlowy-$VERSION-linux-x86_64.tar.xz"
219216
}
@@ -226,7 +223,6 @@ case $BUILD_TYPE in
226223
build_zip
227224
build_deb
228225
build_rpm
229-
build_tar_xz
230226
build_appimage
231227
;;
232228
"zip")

0 commit comments

Comments
 (0)