From e61993d5843a149b25bde336bcfbcae004b25956 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=AD=99=E5=A8=87?=
Date: Sun, 25 Feb 2024 01:12:09 +0800
Subject: [PATCH] add appimage build
---
.github/workflows/main.yml | 4 +++-
appimage_build.sh | 1 +
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index a4f62eb..786f236 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -16,13 +16,15 @@ jobs:
- name: Update dependencies
run: sudo apt-get update
- name: Install dependencies
- run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-0 libgtk-3-dev libblkid1 liblzma5
+ run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-0 libgtk-3-dev libblkid1 liblzma5 appimagetool
- name: Install project dependencies
run: flutter pub get
- name: Enable linux build
run: flutter config --enable-linux-desktop
- name: Build artifacts
run: flutter build linux --release
+ - name: Build Appimage
+ run: appimage_build.sh
- name: Linux Release
uses: actions/upload-artifact@v4
with:
diff --git a/appimage_build.sh b/appimage_build.sh
index f7ce327..dd61e1f 100644
--- a/appimage_build.sh
+++ b/appimage_build.sh
@@ -6,3 +6,4 @@ cp -r ./appimage/AppRun ./build/linux/x64/renamer.AppDir
chmod +x ./build/linux/x64/renamer.AppDir/AppRun
appimagetool ./build/linux/x64/renamer.AppDir
rm -rf ./build/linux/x64/renamer.AppDir
+cp Renamer-x86_64.AppImage ./build/linux/x64/release/bundle/