This commit is contained in:
Alexander Bejarano 2026-02-25 14:30:53 +08:00 committed by GitHub
commit b25ca8e1e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 28 additions and 2 deletions

24
.github/workflows/linux-x64-build.yml vendored Normal file
View File

@ -0,0 +1,24 @@
name: linux 64 bit build
on:
workflow_dispatch:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Get code
uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt install wireguard-tools libgtk-3-dev libayatana-appindicator3-dev golang-go
- name: Compile
run: |
./package.sh
- name: Artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
path: |
build

View File

@ -1,6 +1,6 @@
Package: wireguird
Source: wireguird
Version: 1.1
Version: 1.1.0
Section: utils
Priority: extra
Architecture: amd64

View File

@ -1,6 +1,8 @@
echo "wireguird: cleaning..."
deb_file="./build/wireguird_amd64.deb"
VERSION="1.1.0"
deb_file="./build/wireguird_${VERSION}_amd64.deb"
if [ -e "$deb_file" ]; then
rm -r "$deb_file"
fi