@@ -4,16 +4,22 @@ define BUILD_EXTENSION
44 @echo "---------------------------------------"
55 @echo "---- $(1 ) "
66 @echo "---------------------------------------"
7+ # # Copy the appropriate manifest file
78 @cd ./angular && \
89 echo "Using manifest_$(1 ) .json" && \
9- cp ./src/manifest_$(1 ) .json ./src/manifest.json && \ # Copy the appropriate manifest file
10- npm run build:prod && \ # Build the Angular app in production mode
11- npx web-ext build -s ./dist -o && \ # Build the web extension package
12- VERSION=$$(jq -r '.version' ./src/manifest.json ) && \ # Extract version from manifest
13- cd ./web-ext-artifacts && \
14- mv mist_extension-$$VERSION.zip mist_extension-$(1 ) -$$VERSION.zip && \ # Rename the zip file based on browser type
15- rm -rf mist_extension-$(1 ) && \ # Remove any existing directory
16- unzip -q mist_extension-$(1 ) -$$VERSION.zip -d mist_extension-$(1 ) # Unzip the package into a directory
10+ cp ./src/manifest_$(1 ) .json ./src/manifest.json
11+ # # Build the Angular app in production mode
12+ @cd ./angular && npm run build:prod
13+ # # Build the web extension package
14+ @cd ./angular && npx web-ext build -s ./dist -o
15+ # # Extract version from manifest
16+ @cd ./angular && VERSION=$$(jq -r '.version' ./src/manifest.json )
17+ # # Rename the zip file based on browser type
18+ @cd ./angular/web-ext-artifacts/ && mv mist_extension-$$VERSION.zip mist_extension-$(1 ) -$$VERSION.zip
19+ # # Remove any existing directory
20+ @cd ./angular/web-ext-artifacts/ && rm -rf mist_extension-$(1 )
21+ # # Unzip the package into a directory
22+ @cd ./angular/web-ext-artifacts/ && unzip -q mist_extension-$(1 ) -$$VERSION.zip -d mist_extension-$(1 )
1723endef
1824
1925.PHONY : help init-openapi init-angular init update-openapi run build webext-ffx webext-chrome webext-all
0 commit comments