Skip to content

Commit

Permalink
Tried AppImage release and tried fixing msix
Browse files Browse the repository at this point in the history
  • Loading branch information
K3vinb5 committed Apr 22, 2024
1 parent 6a18b5a commit 71c343c
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 15 deletions.
23 changes: 19 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
channel: 'stable'
flutter-version: '3.19.6'
- name: Install dependencies
run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev
run: sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev locate
- name: Install project dependencies
run: flutter pub get
- name: Generate intermediates
Expand All @@ -31,13 +31,28 @@ jobs:
type: 'zip'
filename: Unyo-${{github.ref_name}}-linux.zip
directory: build/linux/x64/release/bundle
- name: Linux Release
- name: Linux Archive Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: build/linux/x64/release/bundle/Unyo-${{github.ref_name}}-linux.zip
- name: Copy AppDir
run: cp -r assets/Unyo.AppDir .
- name: Copy Compiled App
run: cp -r build/linux/x64/release/bundle/* Unyo.AppDir/.
- name: Copy appimagetool
run: cp assets/appimagetool.AppImage
- name: Execute appimagetool
run: ./appimagetool Unyo.AppDir Unyo.AppImage
- name: Linux AppImage Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: build/linux/x64/release/bundle/Unyo.AppImage

build-and-release-windows:
runs-on: windows-latest
Expand Down Expand Up @@ -65,15 +80,15 @@ jobs:
type: 'zip'
filename: Unyo-${{github.ref_name}}-windows.zip
directory: build\windows\x64\runner\Release
- name: Build Msix
run: flutter pub run msix:create
- name: Windows Archive Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: build/windows/x64/runner/Release/Unyo-${{github.ref_name}}-windows.zip
- name: Build Msix
run: flutter pub run msix:create
- name: Windows Msix Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
Expand Down
Binary file added assets/Unyo.AppDir/.DirIcon
Binary file not shown.
3 changes: 3 additions & 0 deletions assets/Unyo.AppDir/AppRun
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh
cd "$(dirname "$0")"
exec ./unyo
8 changes: 8 additions & 0 deletions assets/Unyo.AppDir/Unyo.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[Desktop Entry]
Name=Flutter Linux App
Comment=Flutter Linux launcher icon
Exec=unyo
Icon=logo
Terminal=false
Type=Application
Categories=X-Multimedia;
Binary file added assets/Unyo.AppDir/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/appimagetool.AppImage
Binary file not shown.
8 changes: 0 additions & 8 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,6 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.0.3"
dmg:
dependency: "direct dev"
description:
name: dmg
sha256: "3cec333d6508467b802235760a1f2128184169a4a6c055b53fce4a9e1d0ac626"
url: "https://pub.dev"
source: hosted
version: "0.0.5"
event_bus:
dependency: transitive
description:
Expand Down
4 changes: 1 addition & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ icons_launcher:
msix_config:
display_name: Unyo
publisher_display_name: K3vinb5
msix_version: 1.0.0.0
architecture: x64
install_certificate: false
logo_path: ./assets/logo.png

dev_dependencies:
Expand All @@ -85,7 +84,6 @@ dev_dependencies:
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^3.0.0
dmg: ^0.0.5

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec
Expand Down

0 comments on commit 71c343c

Please sign in to comment.