Skip to content

Commit

Permalink
resync nym-vpn-app with main
Browse files Browse the repository at this point in the history
  • Loading branch information
doums committed Nov 14, 2024
1 parent 54d731a commit 515007a
Show file tree
Hide file tree
Showing 101 changed files with 1,583 additions and 1,433 deletions.
2 changes: 1 addition & 1 deletion nym-vpn-app/.pkg/app.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Name=NymVPN
Type=Application
Version=1.0
Comment=Decentralized, mixnet, and zero-knowledge VPN
Exec=run.sh %U
Exec=env LOG_FILE=1 RUST_LOG=info,nym_vpn_app=debug nym-vpn-app %U
Icon=nym-vpn
Terminal=false
Categories=Network;
8 changes: 3 additions & 5 deletions nym-vpn-app/.pkg/aur/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ provides=('nym-vpn-app')
conflicts=('nymvpn-x' 'nym-vpn-app')
options=(!debug)
source=("$pkgname-$pkgver.tar.gz::$url/archive/refs/tags/$_release_tag.tar.gz"
'nym-vpn-wrapper.sh'
'nym-vpn.desktop'
'nym-vpn.svg')
sha256sums=()
Expand All @@ -27,7 +26,7 @@ _srcdir="nym-vpn-client-$_release_tag"
prepare() {
pushd "$_srcdir"

# rip off all useless sources
# rip off useless sources
rm -rf nym-vpn-android
rm -rf nym-vpn-apple
popd
Expand Down Expand Up @@ -58,8 +57,7 @@ package() {
install -Dm755 "src-tauri/target/release/nym-vpn-app" "$pkgdir/usr/bin/nym-vpn-app"
popd

install -Dm755 "nym-vpn-wrapper.sh" "$pkgdir/usr/bin/nym-vpn-wrapper.sh"
install -Dm644 "nym-vpn.desktop" "$pkgdir/usr/share/applications/nym-vpn.desktop"
install -Dm644 "nym-vpn.svg" "$pkgdir/usr/share/icons/nym-vpn.svg"
install -Dm644 "nym-vpn.desktop" "$pkgdir/usr/share/applications/nym-vpn.desktop"
install -Dm644 "nym-vpn.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/nym-vpn.svg"
}

7 changes: 3 additions & 4 deletions nym-vpn-app/.pkg/aur/PKGBUILD-bin
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,14 @@ provides=('nym-vpn-app')
conflicts=('nymvpn-x' 'nym-vpn-app')
options=(!debug)
source=("$url/releases/download/$_release_tag/nym-vpn_${_pkgver}_linux_x64"
'nym-vpn-wrapper.sh'
'nym-vpn.desktop'
'nym-vpn.svg')
sha256sums=()

package() {
install -Dm755 "nym-vpn_${_pkgver}_linux_x64" "$pkgdir/usr/bin/nym-vpn-app"
install -Dm755 "nym-vpn-wrapper.sh" "$pkgdir/usr/bin/nym-vpn-wrapper.sh"
install -Dm644 "nym-vpn.desktop" "$pkgdir/usr/share/applications/nym-vpn.desktop"
install -Dm644 "nym-vpn.svg" "$pkgdir/usr/share/icons/nym-vpn.svg"
install -Dm644 "nym-vpn.desktop" "$pkgdir/usr/share/applications/nym-vpn.desktop"
install -Dm644 "nym-vpn.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/nym-vpn.svg"
}


7 changes: 0 additions & 7 deletions nym-vpn-app/.pkg/aur/nym-vpn-wrapper.sh

This file was deleted.

10 changes: 0 additions & 10 deletions nym-vpn-app/.pkg/aur/nym-vpn.desktop

This file was deleted.

1 change: 0 additions & 1 deletion nym-vpn-app/.pkg/aur/nym-vpn.svg

This file was deleted.

15 changes: 2 additions & 13 deletions nym-vpn-app/.pkg/flatpak/net.nymtech.NymVPN.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,12 @@ modules:
path: net.nymtech.NymVPN.metainfo.xml
- type: file
path: ../app.desktop
- type: script
dest-filename: run.sh
# wrapper script to set the needed environment variables
commands:
# use `WEBKIT_DISABLE_DMABUF_RENDERER=1` to fix an issue with NVIDIA gpu
# https://github.com/nymtech/nym-vpn-client/issues/305
- |
if [ -c /dev/nvidia0 ]; then
export WEBKIT_DISABLE_DMABUF_RENDERER=1
fi
LOG_FILE=1 /app/bin/nym-vpn "$@"
- type: file
path: ../icon.svg
build-commands:
- install -Dm755 nym-vpn /app/bin/nym-vpn
- install -Dm755 run.sh /app/bin/run.sh
- sed -i "s/^Icon=.*/Icon=net.nymtech.NymVPN/" app.desktop
- desktop-file-edit --set-key=Exec --set-value='env LOG_FILE=1 RUST_LOG=info nym-vpn %U' app.desktop
- desktop-file-edit --set-icon=net.nymtech.NymVPN app.desktop
- install -Dm644 app.desktop /app/share/applications/net.nymtech.NymVPN.desktop
- install -Dm644 icon.svg /app/share/icons/hicolor/scalable/apps/net.nymtech.NymVPN.svg
- install -Dm644 net.nymtech.NymVPN.metainfo.xml /app/share/metainfo/net.nymtech.NymVPN.metainfo.xml
29 changes: 14 additions & 15 deletions nym-vpn-app/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
# nym-vpn-app

Desktop client application for [NymVPN](https://nymvpn.com/en), built with
[tauri](https://v2.tauri.app/).
[tauri](https://v2.tauri.app/). Supports Linux and Windows.

For more information about NymVPN, its features, latest announcements, Help Center, or to download the latest stable release, visit [nymvpn.com](https://nymvpn.com/en).
For more information about NymVPN, its features, latest announcements,
Help Center, or to download the latest stable release, visit
[nymvpn.com](https://nymvpn.com/en).

## Installation

### Linux

The following install methods are available:

### Arch Linux (AUR)
Expand Down Expand Up @@ -39,26 +39,25 @@ sudo dpkg -i /tmp/nym-repo-setup_1.0.1_amd64.deb
sudo apt install nym-vpn
```

### Other Linux
### Flatpak (client app only)

For most Linux distributions, you can install both the client
application and the daemon (`vpnd`) via the installer script:
The app is available on [Flathub](https://flathub.org/apps/net.nymtech.NymVPN)

```shell
curl -fsSL https://nymtech.net/go/github/nym-vpn-client/raw/main/.pkg/linux/install | bash
flatpak install flathub net.nymtech.NymVPN
```

It will install from the latest releases the client as AppImage
and the daemon as a systemd service.
### AppImage (client app only)

note: it's a good practice to check the
[script](https://github.com/nymtech/nym-vpn-client/blob/main/.pkg/linux/install)
before running it.
The _AppImage_ is available in the
[releases](https://github.com/nymtech/nym-vpn-client/releases),
look for release tag `nym-vpn-app-v*` and download `NymVPN.AppImage`.

### Windows

Download the installer from the [releases](https://github.com/nymtech/nym-vpn-client/releases).\
Look for the latest release `nym-vpn-app-v*`, download
The installer is available in the
[releases](https://github.com/nymtech/nym-vpn-client/releases).\
Look for release tag `nym-vpn-app-v*`, download
`NymVPN-setup.exe` and launch it.

---
Expand Down
Loading

0 comments on commit 515007a

Please sign in to comment.