mirror of
https://github.com/asphyxia-core/core.git
synced 2026-12-04 22:49:12 -06:00
build version
This commit is contained in:
@@ -3,11 +3,11 @@
|
||||
mkdir -p build
|
||||
|
||||
regex='VERSION = '"'"'(.*)'"'"''
|
||||
[[ $(cat ./src/util/Consts.ts) =~ $regex ]]
|
||||
[[ $(cat ./src/utils/Consts.ts) =~ $regex ]]
|
||||
|
||||
VERSION=${BASH_REMATCH[1]}
|
||||
|
||||
echo "Building Version $VERSION for arm64"
|
||||
echo "Building Version $VERSION for Arm"
|
||||
|
||||
echo "NPM Install"
|
||||
npm ci
|
||||
|
||||
@@ -2,7 +2,12 @@
|
||||
|
||||
mkdir -p build
|
||||
|
||||
echo "Building Linux Version"
|
||||
regex='VERSION = '"'"'(.*)'"'"''
|
||||
[[ $(cat ./src/utils/Consts.ts) =~ $regex ]]
|
||||
|
||||
VERSION=${BASH_REMATCH[1]}
|
||||
|
||||
echo "Building Version $VERSION for Linux"
|
||||
|
||||
echo "NPM Install"
|
||||
npm ci
|
||||
@@ -28,4 +33,4 @@ rm -f ./build/asphyxia-core-linux-x64.zip
|
||||
cd build
|
||||
zip -qq asphyxia-core-linux-x64.zip asphyxia-core
|
||||
cd ..
|
||||
zip -qq ./build/asphyxia-core-armv7.zip -r plugins
|
||||
zip -qq ./build/asphyxia-core-linux-x64.zip -r plugins
|
||||
|
||||
@@ -1,9 +1,12 @@
|
||||
# Getting version
|
||||
$VER_CODE = Select-String -Path ".\src\utils\Consts.ts" -Pattern "VERSION = '(.*)'"
|
||||
$VERSION = $VER_CODE.Matches.Groups[1].Value;
|
||||
|
||||
Write-Output "Building Version $VERSION for Windows"
|
||||
|
||||
# Prepare directories
|
||||
New-Item -Path "." -Name "build" -ItemType "directory" -Force | Out-Null
|
||||
|
||||
Write-Output "Building Windows Version"
|
||||
|
||||
|
||||
Write-Output "Copying windows node binary cache"
|
||||
New-Item -Path "$env:USERPROFILE" -Name ".pkg-cache" -ItemType "directory" -Force | Out-Null
|
||||
New-Item -Path "$env:USERPROFILE\.pkg-cache" -Name "v2.6" -ItemType "directory" -Force | Out-Null
|
||||
|
||||
Reference in New Issue
Block a user