We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e30e1d commit 1a32ec8Copy full SHA for 1a32ec8
Makefile
@@ -170,7 +170,14 @@ install-darwin: app-bundle
170
install-unix: build
171
@echo "Installing on $(shell uname)..."
172
@echo "Installing binary to /usr/local/bin..."
173
- @sudo install -m 755 out/$(APP_NAME) /usr/local/bin/
+ @if command -v sudo >/dev/null 2>&1; then \
174
+ sudo install -m 755 out/$(APP_NAME) /usr/local/bin/; \
175
+ elif command -v doas >/dev/null 2>&1; then \
176
+ doas install -m 755 out/$(APP_NAME) /usr/local/bin/; \
177
+ else \
178
+ echo "Error: Neither sudo nor doas found. Please install the binary manually."; \
179
+ exit 1; \
180
+ fi
181
@echo "Installation complete! $(APP_NAME) has been installed to /usr/local/bin"
182
183
# Install on Windows
0 commit comments