Debian build workflow created

This commit is contained in:
Kingkor Roy Tirtho 2022-01-17 10:31:08 +06:00
parent b0cf2517c3
commit 9e3e7184f6
2 changed files with 24 additions and 1 deletions

22
.github/workflows/flutter-build.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: Flutter Cross Build
on:
push:
branches: [build]
workflow_dispatch:
jobs:
build_ubuntu:
runs-on: ubuntu-latest
steps:
- uses: subosito/flutter-action@v2.2.0
- run: |
sudo apt-get update -y
sudo apt-get install -y make build-essntials ninja-build libgtk-3-dev libwebkit2gtk-4.0-dev libkeybinder-3.0-0
- run: flutter config --enable-linux-desktop
- run: flutter pub get
- run: flutter build linux
- run: make deb
- uses: actions/upload-artifact@v2
with:
name: bundle-deb
path: build/Spotube-linux-x86_64.deb

View File

@ -2,7 +2,7 @@ app-id: oss.krtirtho.Spotube
runtime: org.gnome.Platform runtime: org.gnome.Platform
runtime-version: '40' runtime-version: '40'
sdk: org.gnome.Sdk sdk: org.gnome.Sdk
command: /app/spotube/spotube command: spotube
finish-args: finish-args:
- --socket=x11 - --socket=x11
- --socket=fallback-x11 - --socket=fallback-x11
@ -19,6 +19,7 @@ modules:
- cp -R spotube/ /app - cp -R spotube/ /app
- cp spotube/spotube.desktop /app/share/applications - cp spotube/spotube.desktop /app/share/applications
- cp spotube/spotube-logo.png /app/share/icons/spotube - cp spotube/spotube-logo.png /app/share/icons/spotube
- ln -s /app/spotube/spotube /app/bin/spotube
sources: sources:
- type: archive - type: archive
only_arches: only_arches: