2019-01-14 18:52:41 +01:00
|
|
|
|
$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
|
2018-11-16 22:30:57 +01:00
|
|
|
|
cd extension
|
2018-10-27 19:11:17 +02:00
|
|
|
|
del ..\ShinigamiEyes.xpi -ErrorAction Ignore
|
|
|
|
|
7z a ..\ShinigamiEyes.xpi * -mm=Copy
|
|
|
|
|
cd ..
|
|
|
|
|
|
2019-01-14 18:52:41 +01:00
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|