-
Notifications
You must be signed in to change notification settings - Fork 134
48 lines (46 loc) · 1.26 KB
/
linux-app.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Linux App Release
on:
push:
branches:
- ci/linux-app-*
tags:
- '*'
jobs:
linux-app-binary:
runs-on: ubuntu-22.04
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v22
with:
nix_path: nixpkgs=channel:nixos-unstable
- uses: actions/setup-node@v3
with:
node-version: 18
cache: npm
- uses: actions/setup-go@v4
with:
go-version: '1.20.5'
- uses: vegardit/fast-apt-mirror.sh@v1
- run: |
sudo apt-get install -y sqlite3 libgtk-3-dev libwebkit2gtk-4.0-dev build-essential pkg-config
npm install
npm run build
nix-build ledger.nix
cp ./result/bin/ledger internal/binary/ledger
cd desktop
go install github.com/wailsapp/wails/v2/cmd/wails@latest
wails doctor
wails build -tags webkit2_40
cp build/bin/Paisa build/linux/usr/local/bin
cp -r build/linux paisa_0.6.0_amd64
dpkg --build paisa_0.6.0_amd64
cd ..
mv desktop/paisa_0.6.0_amd64.deb paisa-app-linux-amd64.deb
- name: Release
uses: softprops/action-gh-release@v1
with:
draft: true
files: |
paisa-*
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}