This commit is contained in:
Pau Giuli 2023-10-01 16:52:37 +02:00 committed by GitHub
commit 37bbab587b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 49 additions and 0 deletions

41
.github/workflows/deb.yml vendored Normal file
View File

@ -0,0 +1,41 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Build wireguird .deb
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
# - name: Install Package Dependencies
# run: |
# echo "resolvconf resolvconf/linkify-resolvconf boolean false" | debconf-set-selections
# sudo apt-get update
# sudo apt-get install -y wireguard-tools libgtk-3-dev libayatana-appindicator3-dev golang-go resolvconf
- name: Build .deb
run: |
chmod +x *.sh
./package_deb.sh
- name: Install package
run: |
sudo apt install ./build/wireguird_amd64.deb

View File

@ -7,5 +7,8 @@ if [[ -f "/etc/os-release" ]]; then
sudo apt install wireguard-tools libgtk-3-dev libayatana-appindicator3-dev golang-go resolvconf
elif [[ "${ID}" == "debian" ]]; then
sudo apt install wireguard-tools libgtk-3-dev libayatana-appindicator3-dev golang-go resolvconf
elif [[ "${ID}" == "linuxmint" ]]; then
sudo apt install wireguard-tools libgtk-3-dev libayatana-appindicator3-dev golang-go resolvconf
fi
fi

View File

@ -5,6 +5,8 @@ if [[ -f "/etc/os-release" ]]; then
#sudo rpm
elif [[ "${ID}" == "ubuntu" ]]; then
sudo dpkg -i ./build/wireguird_amd64.deb
elif [[ "${ID}" == "linuxmint" ]]; then
sudo dpkg -i ./build/wireguird_amd64.deb
fi
fi

View File

@ -7,5 +7,8 @@ if [[ -f "/etc/os-release" ]]; then
elif [[ "${ID}" == "ubuntu" ]]; then
echo "deb package"
./package_deb.sh
elif [[ "${ID}" == "linuxmint" ]]; then
echo "deb package"
./package_deb.sh
fi
fi