-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
43 lines (33 loc) · 1.41 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
WARP_MENU_VERSION:=v2.0.3
ZIPFILE_NAME:=warp-$(WARP_MENU_VERSION).zip
SHA_FILE_NAME:=$(ZIPFILE_NAME).sha256
.DEFAULT_GOAL:=package
clean-build:
rm -rf target/warp
clean-zip:
rm -rf target/warp-*.zip
rm -rf target/warp-*.zip.sha256
build: clean-build
vite build
package: build clean-zip
cd target; zip -r $(ZIPFILE_NAME) warp
signature: package
cd target; cat $(ZIPFILE_NAME) | sha256sum | sed 's/-/target\/$(ZIPFILE_NAME)/' > $(SHA_FILE_NAME)
NPM_REGISTRY_RELEASE=ecosystem.cloudogu.com/nexus/repository/npm-releases/
NPM_URL_RELEASE=https://${NPM_REGISTRY_RELEASE}
NPM_REGISTRY_RC=ecosystem.cloudogu.com/nexus/repository/npm-releasecandidates/
NPM_URL_RC=https://${NPM_REGISTRY_RC}
.PHONY gen-npmrc-release:
gen-npmrc-release:
@rm -f .npmrc
@echo "[email protected]" >> .npmrc
@echo "always-auth=true" >> .npmrc
@echo "//${NPM_REGISTRY_RELEASE}:_auth=\"$(shell bash -c 'read -p "Username: " usrname;read -s -p "Password: " pwd;echo -n "$$usrname:$$pwd" | openssl base64')\"" >> .npmrc
@echo "@cloudogu:registry=${NPM_URL_RELEASE}" >> .npmrc
.PHONY gen-npmrc-prerelease:
gen-npmrc-prerelease:
@rm -f .npmrc
@echo "[email protected]" >> .npmrc
@echo "always-auth=true" >> .npmrc
@echo "//${NPM_REGISTRY_RC}:_auth= \"$(shell bash -c 'read -p "Username: " usrname;read -s -p "Password: " pwd;echo -n "$$usrname:$$pwd" | openssl base64')\"" >> .npmrc
@echo "@cloudogu:registry=${NPM_URL_RC}" >> .npmrc