Add helper scripts to generic variant

This commit is contained in:
JustArchi 2017-09-23 04:43:27 +02:00
parent 0e3d8ef92f
commit d3715db082
4 changed files with 15 additions and 0 deletions

View file

@ -42,6 +42,10 @@ script:
fi
echo "$1" > "ArchiSteamFarm/out/${1}/ArchiSteamFarm.version"
if [ -d "ArchiSteamFarm/scripts/${1}" ]; then
cp "ArchiSteamFarm/scripts/${1}/"* "ArchiSteamFarm/out/${1}"
fi
}
for RUNTIME in $RUNTIMES; do

View file

@ -0,0 +1,3 @@
@echo off
pushd %~dp0
dotnet ArchiSteamFarm.dll

View file

@ -0,0 +1,4 @@
#!/bin/bash
set -eu
cd "$(dirname "$(readlink -f "$0")")"
dotnet ArchiSteamFarm.dll

View file

@ -66,6 +66,10 @@ after_test:
Set-Content -Path "ArchiSteamFarm\out\$RUNTIME\ArchiSteamFarm.version" -Value "$RUNTIME"
if (Test-Path -Path "ArchiSteamFarm\scripts\$RUNTIME" -PathType Container) {
Copy-Item "ArchiSteamFarm\scripts\$RUNTIME\*" "ArchiSteamFarm\out\$RUNTIME"
}
7z a -bd -tzip -mm=Deflate64 -mx=9 -mfb=257 -mpass=3 "ArchiSteamFarm\out\ASF-$RUNTIME.zip" "$env:APPVEYOR_BUILD_FOLDER\ArchiSteamFarm\out\$RUNTIME\*"
Push-AppveyorArtifact "ArchiSteamFarm\out\ASF-$RUNTIME.zip" -FileName "ASF-$RUNTIME.zip" -DeploymentName "ASF-$RUNTIME.zip"
}