Create FUNDING.yml #185
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
name: FlutterCI | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
paths-ignore: | |
- "README.md" | |
- "docs/**" | |
- "assets/screenshot/**" | |
workflow_dispatch: | |
release: | |
types: [created] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup flutter | |
uses: subosito/flutter-action@master | |
with: | |
channel: stable | |
- name: Install linux app dependencies | |
run: sudo apt-get update -y && sudo apt-get install -y ninja-build libgtk-3-dev libfuse2 | |
- name: Enable desktop support | |
run: flutter config --enable-linux-desktop | |
- name: Build Flutter app | |
run: flutter build linux | |
- name: Build Tarball | |
run: | | |
install -D assets/appimagepool.svg linux/packaging/usr/share/icons/hicolor/128x128/apps/appimagepool.svg | |
cp -fr build/linux/x64/release/bundle linux/packaging/usr/bin | |
mkdir AppDir | |
cp -r linux/packaging/usr AppDir | |
ln -sr AppDir/usr/bin/appimagepool AppDir/appimagepool | |
tar czf appimagepool-${{ github.event_name == 'release' && github.event.release.tag_name || 'continuous' }}-x86_64.tar.gz -C AppDir/ . | |
- name: Build AppImage | |
run: | | |
echo '#!/bin/sh | |
cd "$(dirname "$0")" | |
exec ./appimagepool' > AppDir/AppRun | |
chmod +x AppDir/AppRun | |
ln -sr AppDir/usr/share/icons/hicolor/128x128/apps/appimagepool.svg AppDir/appimagepool.svg | |
cp AppDir/usr/share/applications/appimagepool.desktop AppDir/appimagepool.desktop | |
curl -L https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -o appimagetool-x86_64.AppImage | |
chmod +x appimagetool-x86_64.AppImage | |
ARCH=x86_64 ./appimagetool-x86_64.AppImage AppDir/ appimagepool-${{ github.event_name == 'release' && github.event.release.tag_name || 'continuous' }}-x86_64.AppImage | |
- name: App tar sha256 sum | |
run: sha256sum appimagepool-*-x86_64.tar.gz | |
- uses: svenstaro/upload-release-action@latest | |
with: | |
repo_token: ${{ secrets.GITHUB_TOKEN }} | |
file: ./appimagepool-* | |
file_glob: true | |
prerelease: ${{ github.event_name != 'release' }} | |
release_name: ${{ github.event_name == 'release' && github.event.release.name || 'Development Build' }} | |
tag: ${{ github.event_name == 'release' && github.event.release.tag_name || 'continuous' }} | |
overwrite: true | |