Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 22 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ name: ci

on:
push:
branches:
branches:
- master
pull_request:
branches:
branches:
- master

jobs:
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
- name: Generate debug keystore (Pull Request)
if: github.event_name == 'pull_request'
run: keytool -genkey -v -keystore /home/runner/work/liftoff/liftoff/android/app/key.jks -alias androiddebugkey -storepass android -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=Android Debug,O=Android,C=US"

- name: Android build (Pull Request)
if: github.event_name == 'pull_request'
env:
Expand All @@ -69,7 +69,7 @@ jobs:
if: github.event_name != 'pull_request'
run: |
echo "${{ secrets.SIGNING_KEY }}" | base64 -d | tee key.jks >/dev/null

- name: Android build (Master Branch)
if: github.event_name != 'pull_request'
env:
Expand Down Expand Up @@ -111,12 +111,29 @@ jobs:
- name: Get additional dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev libblkid-dev
sudo apt-get install -y clang cmake ninja-build pkg-config libgtk-3-dev libblkid-dev libfuse2

- name: Build
run: |
flutter build linux --release --target lib/main_prod.dart

- name: Package AppImage
run: |
mkdir -p AppDir/usr/bin
cp assets/liftoff.desktop AppDir
cp assets/app_icon.png AppDir/liftoff.png
wget -q https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage
wget -qO AppDir/AppRun https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-x86_64
chmod +x appimagetool-x86_64.AppImage AppDir/AppRun
cp -r build/linux/x64/release/bundle/* AppDir/usr/bin
./appimagetool-x86_64.AppImage AppDir liftoff.AppImage

- uses: actions/upload-artifact@v2
with:
name: linux-appimage
path: liftoff.AppImage


windows:
name: Windows
runs-on: windows-latest
Expand Down
7 changes: 7 additions & 0 deletions assets/liftoff.desktop

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #236

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure what I can do?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wait until the other PR is merged

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
[Desktop Entry]
Version=1.5
Name=Liftoff
Exec=Liftoff
Icon=liftoff
Type=Application
Categories=Network;