Better build script
This commit is contained in:
parent
c049d4bf3b
commit
419bd59288
18
build.ps1
18
build.ps1
@ -1,6 +1,22 @@
|
|||||||
node import-data.js
|
$ErrorActionPreference = 'Stop'
|
||||||
|
|
||||||
|
$version = (gc .\extension\manifest.json | convertfrom-json).version
|
||||||
|
$archiveDir = "C:\ML\shinigami-eyes-releases"
|
||||||
|
|
||||||
|
|
||||||
|
$out = "$archiveDir\shinigami-eyes-$version.xpi"
|
||||||
|
if(Test-Path $out){ throw 'Release already exists.' }
|
||||||
|
|
||||||
|
node import-data.js
|
||||||
cd extension
|
cd extension
|
||||||
del ..\ShinigamiEyes.xpi -ErrorAction Ignore
|
del ..\ShinigamiEyes.xpi -ErrorAction Ignore
|
||||||
7z a ..\ShinigamiEyes.xpi * -mm=Copy
|
7z a ..\ShinigamiEyes.xpi * -mm=Copy
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
|
||||||
|
copy ShinigamiEyes.xpi $out
|
||||||
|
7z a "$archiveDir\shinigami-eyes-lists-$version.7z" -mx9 C:\ML\facebook\transphobic.txt C:\ML\facebook\t-friendly.txt
|
||||||
|
CheckExitCode
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user