Skip to content

Commit aa83f35

Browse files
committed
Powershell script to zip
1 parent fe98ee9 commit aa83f35

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"scripts": {
55
"dev": "web-ext run -s src --target=chromium",
66
"compile": "tsc --noEmit",
7-
"zip": "powershell scripts/build.ps1",
7+
"build": "powershell scripts/build.ps1",
8+
"zip": "powershell scripts/zip.ps1",
89
"lint": "echo 'TODO'"
910
},
1011
"devDependencies": {

scripts/zip.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
$sourceFolder = ".\dist"
2+
$targetFolder = ".\artifacts"
3+
$version = $(node -pe "require('./src/manifest.json').version")
4+
Compress-Archive -Path $sourceFolder -DestinationPath $targetFolder/web-activity-time-tracker-$version.zip

0 commit comments

Comments
 (0)