mirror of
https://github.com/JustArchiNET/ArchiSteamFarm
synced 2024-11-10 07:04:27 +00:00
Add helper scripts to generic variant
This commit is contained in:
parent
0e3d8ef92f
commit
d3715db082
4 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
3
ArchiSteamFarm/scripts/generic/ArchiSteamFarm.cmd
Normal file
3
ArchiSteamFarm/scripts/generic/ArchiSteamFarm.cmd
Normal file
|
@ -0,0 +1,3 @@
|
|||
@echo off
|
||||
pushd %~dp0
|
||||
dotnet ArchiSteamFarm.dll
|
4
ArchiSteamFarm/scripts/generic/ArchiSteamFarm.sh
Normal file
4
ArchiSteamFarm/scripts/generic/ArchiSteamFarm.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
set -eu
|
||||
cd "$(dirname "$(readlink -f "$0")")"
|
||||
dotnet ArchiSteamFarm.dll
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue