Restructured installer directory

This commit is contained in:
Joel Collins 2019-03-05 16:17:23 +00:00
parent eec8e938a0
commit 8e6f38afe8
6 changed files with 19 additions and 7 deletions

View file

@ -1,8 +1,20 @@
echo "Setting up..."
$here = $PSScriptRoot
$root = "$here/.."
$package = Get-Content "$root/package.json" | Out-String | ConvertFrom-Json
$version = $package.version
$name = $package.name
$wslhere = (wsl wslpath -a ("$here" -Replace '\\','\\'))
$wslroot = (wsl wslpath -a ("$root" -Replace '\\','\\'))
mkdir "$root/release-builds/dist/$version/"
echo "Gzipping PWA..."
wsl tar -czvf "$wslroot/release-builds/dist/$version/${name}_${version}_pwa.tar.gz" -C "$wslroot/dist" .
echo "Building deb packages..."
$wslhere = (wsl wslpath -a ("$here" -Replace '\\','\\'))
wsl node "$wslhere/create-deb-x64.js"
wsl node "$wslhere/create-deb-arm.js"