You need a working instance of Gnosis VPN client service running on your system on the default socket.
In order to start development, run a local dev server via:
nix develop --command deno install
nix develop --command deno task tauri dev- Install Prerequisites
deno installdeno task tauri devdeno task tauri build --target universal-apple-darwin# macos
To convert a developer certificate so it can be used by tauri build flow, follow these steps:
Import key and certificate into keychain access:
$ ls -l
gnosisvpn.key
gnosisvpn.pem
$ keychain_pass=<anypass>
$ security create-keychain -p "$keychain_pass" build.keychain
$ security default-keychain -s build.keychain
$ security unlock-keychain -p "$keychain_pass" build.keychain
$ security set-keychain-settings -t 3600 -u build.keychain
$ security import gnosisvpn.pem -k build.keychain
1 certificate imported.
$ security import gnosisvpn.key -k build.keychain
1 key imported.Open keychain access, find certificates, click export and choose .p12 format.
Use <anypass> from the previous step to unlock the keychain. Set a strong
password for the exported .p12 file and configure the
APPLE_CERTIFICATE_PASSWORD env in the CI with this password.
$ ls -l
gnosisvpn.key
gnosisvpn.pem
gnosisvpn.p12
$ openssl base64 -in ./gnosisvpn.p12 -out gnosisvpn-base64.txt
$ security delete-keychain build.keychainSet the content of ./gnosisvpn-base64.txt as APPLE_CERTIFICATE_BASE64 env in
the CI.
The CI will check formatting and linting.
Run formatting locally via:
nix fmtRun linting locally via:
nix develop --command deno lint --fix