-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,10 +27,7 @@ jobs: | |
- name: Install AppImage and Linux dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgtk-3-dev libblkid-dev e2fslibs-dev liblzma-dev libmpv-dev mpv ninja-build fuse | ||
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage | ||
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage | ||
chmod +x linuxdeploy-x86_64.AppImage appimagetool-x86_64.AppImage | ||
sudo apt-get install -y libgtk-3-dev libblkid-dev e2fslibs-dev liblzma-dev libmpv-dev mpv ninja-build fuse appimagetool | ||
# Fetch Flutter dependencies | ||
- name: Install Flutter dependencies | ||
|
@@ -40,22 +37,19 @@ jobs: | |
- name: Build Flutter Linux App | ||
run: flutter build linux | ||
|
||
- name: List build directory | ||
run: | | ||
ls -R build/linux/x64/release/bundle | ||
- name: Upload a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: linux-bin | ||
path: build/linux/x64/release/bundle | ||
|
||
# Ensure executable permissions | ||
- name: Set executable permissions | ||
run: chmod +x build/linux/x64/release/bundle/open_media_server_app | ||
|
||
# Package the built Linux app into an AppImage | ||
- name: Create AppImage | ||
run: | | ||
./linuxdeploy-x86_64.AppImage \ | ||
--appdir=build/linux/x64/release/bundle \ | ||
--output appimage \ | ||
--desktop-file=assets/desktop/myapp.desktop \ | ||
--icon-file assets/images/myapp.png | ||
run: appimagetool --appdir=build/linux/x64/release/bundle AppImage.AppImage | ||
|
||
# Upload the AppImage as an artifact (optional) | ||
- name: Upload AppImage artifact | ||
|