-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
56 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,11 +101,23 @@ jobs: | |
- name: Install Linux dependencies | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf libssl-dev unzip protobuf-compiler libprotobuf-dev | ||
sudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libappindicator3-dev librsvg2-dev patchelf libssl-dev unzip protobuf-compiler libprotobuf-dev rpm | ||
- name: Build packages | ||
uses: tauri-apps/tauri-action@v0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Create RPM | ||
run: | | ||
rpmbuild --build-in-place --define "_topdir $(pwd)" --define "version ${{ env.VERSION }}" -bb resources-linux/defguard-client.spec | ||
- name: Upload RPM | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ needs.create-release.outputs.upload_url }} | ||
asset_path: RPMS/${{ matrix.binary_arch }}/defguard-client-${{ env.VERSION }}-1.${{ matrix.binary_arch }}.rpm | ||
asset_name: defguard-client-${{ env.VERSION }}-1.${{ matrix.binary_arch }}.rpm | ||
asset_content_type: application/octet-stream | ||
- name: Upload DEB | ||
uses: actions/[email protected] | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
Name: defguard-client | ||
Version: %{version} | ||
Release: 1%{?dist} | ||
Summary: Defguard desktop client | ||
|
||
License: Apache-2.0 | ||
URL: https://defguard.net/ | ||
Requires: libappindicator-gtk3 webkit2gtk4.0 | ||
|
||
%description | ||
Desktop client for managing WireGuard VPN connections | ||
|
||
%install | ||
%{__mkdir} -p %{buildroot}/%{_bindir} %{buildroot}/%{_sbindir} %{buildroot}/%{_prefix}/lib/systemd/system | ||
%{__install} -m 755 src-tauri/target/release/defguard-client %{buildroot}/%{_bindir}/ | ||
%{__install} -m 755 src-tauri/target/release/defguard-service %{buildroot}/%{_sbindir}/ | ||
%{__install} -m 644 resources-linux/defguard-service.service %{buildroot}/%{_prefix}/lib/systemd/system/ | ||
|
||
%post | ||
# %{systemd_post} defguard-service.service | ||
if [ $1 -eq 1 ]; then | ||
systemctl daemon-reload | ||
systemctl enable defguard-service.service | ||
systemctl start defguard-service.service | ||
fi | ||
|
||
%preun | ||
# %{systemd_preun} defguard-service.service | ||
if [ $1 -eq 0 ]; then | ||
systemctl stop defguard-service.service | ||
systemctl disable defguard-service.service | ||
fi | ||
|
||
%postun | ||
# %{systemd_postun} defguard-service.service | ||
systemctl daemon-reload | ||
|
||
%files | ||
%{_bindir}/defguard-client | ||
%{_sbindir}/defguard-service | ||
%{_prefix}/lib/systemd/system/defguard-service.service |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters