diff --git a/.gitignore b/.gitignore index de8cb0b..bed7e6c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /browserpass /browserpass-* dist/ +setup.msi diff --git a/Makefile b/Makefile index c1049ed..52da6e2 100644 --- a/Makefile +++ b/Makefile @@ -6,6 +6,8 @@ BIN_DIR = $(DESTDIR)$(PREFIX)/bin LIB_DIR = $(DESTDIR)$(PREFIX)/lib SHARE_DIR = $(DESTDIR)$(PREFIX)/share +WINDOWS_BIN = C:\\\\\\\\Program Files\\\\\\\\Browserpass\\\\\\\\browserpass-windows64.exe + GO_GCFLAGS := "all=-trimpath=${PWD}" GO_ASMFLAGS := "all=-trimpath=${PWD}" GO_LDFLAGS := "-extldflags ${LDFLAGS}" @@ -87,6 +89,10 @@ configure: $(SED) -i 's|"path": ".*"|"path": "'"$(BIN_DIR)/$(BIN)"'"|' browser-files/chromium-host.json $(SED) -i 's|"path": ".*"|"path": "'"$(BIN_DIR)/$(BIN)"'"|' browser-files/firefox-host.json +configure-windows: + $(SED) -i 's|"path": ".*"|"path": "'"$(WINDOWS_BIN)"'"|' browser-files/chromium-host.json + $(SED) -i 's|"path": ".*"|"path": "'"$(WINDOWS_BIN)"'"|' browser-files/firefox-host.json + .PHONY: install install: $(INSTALL) -Dm755 -t "$(BIN_DIR)/" $(BIN) @@ -353,3 +359,6 @@ policies-brave-user: ;; \ *) echo "The operating system $(OS) is not supported"; exit 1 ;; \ esac + +setup.msi: + wixl --arch x64 setup.wxs \ No newline at end of file diff --git a/setup.wxs b/setup.wxs new file mode 100644 index 0000000..78cf2c9 --- /dev/null +++ b/setup.wxs @@ -0,0 +1,32 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file