commit
d6fc39d057
20
.github/workflows/shellcheck-dev.yml
vendored
Normal file
20
.github/workflows/shellcheck-dev.yml
vendored
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
name: shellcheck-dev
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- '*'
|
||||||
|
- '!master'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
shellcheck:
|
||||||
|
name: shellcheck
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Run ShellCheck
|
||||||
|
uses: ludeeus/action-shellcheck@master
|
||||||
|
env:
|
||||||
|
SHELLCHECK_OPTS: -x
|
||||||
|
with:
|
||||||
|
additional_files: 'builder'
|
19
.github/workflows/shellcheck-master.yml
vendored
Normal file
19
.github/workflows/shellcheck-master.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: shellcheck
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
shellcheck:
|
||||||
|
name: shellcheck
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Run ShellCheck
|
||||||
|
uses: ludeeus/action-shellcheck@master
|
||||||
|
env:
|
||||||
|
SHELLCHECK_OPTS: -x
|
||||||
|
with:
|
||||||
|
additional_files: 'builder'
|
2
.shellcheck/build.cfg
Normal file
2
.shellcheck/build.cfg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
PackageBuildOrder="SomePackageName SomePackageNameMut"
|
||||||
|
PackageUpload="SomePackageName SomePackageNameMut"
|
31
.shellcheck/test.cfg
Normal file
31
.shellcheck/test.cfg
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
# Test parameters
|
||||||
|
|
||||||
|
# Map:
|
||||||
|
Map="KF-Nuked"
|
||||||
|
|
||||||
|
# Game:
|
||||||
|
# Survival: KFGameContent.KFGameInfo_Survival
|
||||||
|
# WeeklyOutbreak: KFGameContent.KFGameInfo_WeeklySurvival
|
||||||
|
# Endless: KFGameContent.KFGameInfo_Endless
|
||||||
|
# Objective: KFGameContent.KFGameInfo_Objective
|
||||||
|
# Versus: KFGameContent.KFGameInfo_VersusSurvival
|
||||||
|
Game="KFGameContent.KFGameInfo_Survival"
|
||||||
|
|
||||||
|
# Difficulty:
|
||||||
|
# Normal: 0
|
||||||
|
# Hard: 1
|
||||||
|
# Suicide: 2
|
||||||
|
# Hell: 3
|
||||||
|
Difficulty="0"
|
||||||
|
|
||||||
|
# GameLength:
|
||||||
|
# 4 waves: 0
|
||||||
|
# 7 waves: 1
|
||||||
|
# 10 waves: 2
|
||||||
|
GameLength="0"
|
||||||
|
|
||||||
|
# Mutators
|
||||||
|
Mutators="SomePackageName.SomePackageNameMut"
|
||||||
|
|
||||||
|
# Additional parameters
|
||||||
|
Args=""
|
10
builder
10
builder
@ -13,7 +13,7 @@ ScriptName=$(basename "$0")
|
|||||||
ScriptDir=$(dirname "$ScriptFullname")
|
ScriptDir=$(dirname "$ScriptFullname")
|
||||||
|
|
||||||
# Useful things
|
# Useful things
|
||||||
source "$ScriptDir/helper.lib"
|
source "$ScriptDir/common.lib"
|
||||||
|
|
||||||
# Common
|
# Common
|
||||||
SteamPath=$(reg_readkey "HKCU\Software\Valve\Steam" "SteamPath")
|
SteamPath=$(reg_readkey "HKCU\Software\Valve\Steam" "SteamPath")
|
||||||
@ -38,8 +38,8 @@ MutSource="$ScriptDir/.."
|
|||||||
MutPubContent="$MutSource/PublicationContent"
|
MutPubContent="$MutSource/PublicationContent"
|
||||||
MutConfig="$MutSource/Config"
|
MutConfig="$MutSource/Config"
|
||||||
MutLocalization="$MutSource/Localization"
|
MutLocalization="$MutSource/Localization"
|
||||||
MutBuildConfig="$MutSource/build.ini" # not ini at all but who cares? :D
|
MutBuildConfig="$MutSource/build.cfg"
|
||||||
MutTestConfig="$MutSource/test.ini"
|
MutTestConfig="$MutSource/test.cfg"
|
||||||
|
|
||||||
# Steam workshop upload filesystem
|
# Steam workshop upload filesystem
|
||||||
KFUnpublishBrewedPC="$KFUnpublish/BrewedPC"
|
KFUnpublishBrewedPC="$KFUnpublish/BrewedPC"
|
||||||
@ -127,7 +127,7 @@ function read_build_settings ()
|
|||||||
if ! [[ -f "$MutBuildConfig" ]]; then init_build; fi
|
if ! [[ -f "$MutBuildConfig" ]]; then init_build; fi
|
||||||
|
|
||||||
if bash -n "$MutBuildConfig"; then
|
if bash -n "$MutBuildConfig"; then
|
||||||
# shellcheck source=./.shellcheck/build.ini
|
# shellcheck source=./.shellcheck/build.cfg
|
||||||
source "$MutBuildConfig"
|
source "$MutBuildConfig"
|
||||||
else
|
else
|
||||||
echo "$MutBuildConfig broken! Check this file before continue or create new one using $0 --init-build"
|
echo "$MutBuildConfig broken! Check this file before continue or create new one using $0 --init-build"
|
||||||
@ -140,7 +140,7 @@ function read_test_settings ()
|
|||||||
if ! [[ -f "$MutTestConfig" ]]; then init_test; fi
|
if ! [[ -f "$MutTestConfig" ]]; then init_test; fi
|
||||||
|
|
||||||
if bash -n "$MutTestConfig"; then
|
if bash -n "$MutTestConfig"; then
|
||||||
# shellcheck source=./.shellcheck/test.ini
|
# shellcheck source=./.shellcheck/test.cfg
|
||||||
source "$MutTestConfig"
|
source "$MutTestConfig"
|
||||||
else
|
else
|
||||||
echo "$MutTestConfig broken! Check this file before continue or create new one using $0 --init-test"
|
echo "$MutTestConfig broken! Check this file before continue or create new one using $0 --init-test"
|
||||||
|
Loading…
Reference in New Issue
Block a user