diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index e460b44..09a6256 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -50,9 +50,13 @@ jobs: - name: Set executable permissions run: chmod +x build/linux/x64/release/bundle/open_media_server_app + - run: | + mkdir -p assets/AppImage/usr/bin/ + cp -r build/linux/x64/release/bundle/ assets/AppImage/usr/bin/ + # Package the built Linux app into an AppImage - name: Create AppImage - run: ./appimagetool-x86_64.AppImage --appdir=build/linux/x64/release/bundle AppImage.AppImage + run: ARCH=x86_64 ./appimagetool-x86_64.AppImage --appdir=build/linux/x64/release/bundle AppImage.AppImage # Upload the AppImage as an artifact (optional) - name: Upload AppImage artifact diff --git a/assets/AppImage/AppRun b/assets/AppImage/AppRun new file mode 100644 index 0000000..d3e40c1 --- /dev/null +++ b/assets/AppImage/AppRun @@ -0,0 +1,2 @@ +#!/bin/bash +exec $APPDIR/usr/bin/open_media_server_app \ No newline at end of file diff --git a/assets/AppImage/hello-world.desktop b/assets/AppImage/hello-world.desktop new file mode 100644 index 0000000..1fc8578 --- /dev/null +++ b/assets/AppImage/hello-world.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Type=Application +Name=Hello World +Exec=open_media_server_app +Icon=myapp +Categories=Utility; \ No newline at end of file diff --git a/assets/images/myapp.png b/assets/AppImage/myapp.png similarity index 100% rename from assets/images/myapp.png rename to assets/AppImage/myapp.png diff --git a/assets/desktop/myapp.desktop b/assets/desktop/myapp.desktop deleted file mode 100644 index 7438f56..0000000 --- a/assets/desktop/myapp.desktop +++ /dev/null @@ -1,6 +0,0 @@ -[Desktop Entry] -Name=My Flutter App -Exec=../../../build/linux/x64/release/bundle -Icon=myapp -Type=Application -Categories=Utility; \ No newline at end of file