fix: wsl browserpass-native
This commit is contained in:
parent
454c34712d
commit
b801eac38c
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
case $(uname -r) in
|
case $(uname -r) in
|
||||||
*microsoft*) powershell.exe -noprofile start-process "'$@'";;
|
*microsoft*|*Microsoft*) powershell.exe -noprofile start-process "'$@'";;
|
||||||
*)
|
*)
|
||||||
if command -v exo-open >/dev/null 2>&1; then
|
if command -v exo-open >/dev/null 2>&1; then
|
||||||
exo-open "$@" 1>/dev/null 2>&1
|
exo-open "$@" 1>/dev/null 2>&1
|
||||||
|
|
21
gui/pass.sh
21
gui/pass.sh
|
@ -14,7 +14,7 @@ mkdir -p "$GNUPG"
|
||||||
# install pass
|
# install pass
|
||||||
case "$PM" in
|
case "$PM" in
|
||||||
apt)
|
apt)
|
||||||
sudo apt install -y pass webext-browserpass
|
sudo apt install -y pass
|
||||||
if [ -n "$WSL" ]; then
|
if [ -n "$WSL" ]; then
|
||||||
PINENTRY=$PDIR/bin/pinentry-wsl-ps1.sh
|
PINENTRY=$PDIR/bin/pinentry-wsl-ps1.sh
|
||||||
BROWSERPASS_NATIVE="$(wsl-win-path.sh %USERPROFILE%)/browser-wsl.bat"
|
BROWSERPASS_NATIVE="$(wsl-win-path.sh %USERPROFILE%)/browser-wsl.bat"
|
||||||
|
@ -30,12 +30,6 @@ case "$PM" in
|
||||||
sudo pacman -S --noconfirm --needed \
|
sudo pacman -S --noconfirm --needed \
|
||||||
go \
|
go \
|
||||||
browserpass
|
browserpass
|
||||||
# install browserpass-native
|
|
||||||
intorepo https://github.com/browserpass/browserpass-native.git "$DIR/repos/browserpass-native"
|
|
||||||
make configure
|
|
||||||
make
|
|
||||||
sudo make install
|
|
||||||
exitrepo
|
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
@ -46,6 +40,19 @@ default-cache-ttl 28800
|
||||||
max-cache-ttl 28800
|
max-cache-ttl 28800
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
||||||
|
# install browserpass-native
|
||||||
|
if [ -n "$WSL" ]; then
|
||||||
|
echo "Please download browserpass-native for windows 64 and extract it to /usr/local/bin"
|
||||||
|
x-open https://github.com/browserpass/browserpass-native/releases/latest
|
||||||
|
else
|
||||||
|
intorepo https://github.com/browserpass/browserpass-native.git "$DIR/repos/browserpass-native"
|
||||||
|
make configure
|
||||||
|
make
|
||||||
|
sudo make install
|
||||||
|
exitrepo
|
||||||
|
fi
|
||||||
|
|
||||||
# enable browser-native for google-chrome
|
# enable browser-native for google-chrome
|
||||||
#make -C /usr/lib/browserpass hosts-chrome-user
|
#make -C /usr/lib/browserpass hosts-chrome-user
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user