From 48821a519e93cb62c5926fb3f9bc1fcf67298abb Mon Sep 17 00:00:00 2001 From: monkeyWie Date: Wed, 2 Nov 2022 15:16:24 +0000 Subject: [PATCH] ci: build linux --- .github/workflows/release.yml | 55 +++++++++++++++++++ ui/flutter/.gitignore | 2 + .../lib/core/entry/libgopeed_boot_native.dart | 4 ++ ui/flutter/linux/CMakeLists.txt | 3 + 4 files changed, 64 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9b0c0256..dfb84687 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -174,6 +174,61 @@ jobs: upload_url: ${{ needs.release.outputs.upload_url }} asset_path: ui/flutter/dist/* overwrite: true + build-linux: + runs-on: ubuntu-latest + needs: [ release ] + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v3 + with: + go-version: '^1.19' + cache: true + - uses: subosito/flutter-action@v2 + - name: Build + env: + VERSION: ${{ needs.release.outputs.tag_name }} + run: | + go build -tags nosqlite -ldflags="-w -s" -buildmode=c-shared -o ui/flutter/linux/bundle/lib/libgopeed.so github.com/monkeyWie/gopeed/bind/desktop + cd ui/flutter + flutter build linux + mkdir -p debian/gui + cat>debian/debian.yaml<debian/gui/Gopeed.desktop<