upd build.cfg
This commit is contained in:
parent
6c280e1e1b
commit
7a3dd171f7
@ -1,2 +1,16 @@
|
|||||||
|
# Build parameters
|
||||||
|
|
||||||
|
# If True - compresses the mutator when compiling
|
||||||
|
# Scripts will be stored in binary form
|
||||||
|
# (reduces the size of the output file)
|
||||||
|
StripSource="True"
|
||||||
|
|
||||||
|
# Mutators to be compiled
|
||||||
|
# Specify them with a space as a separator,
|
||||||
|
# Mutators will be compiled in the specified order
|
||||||
PackageBuildOrder="SomePackageName SomePackageNameMut"
|
PackageBuildOrder="SomePackageName SomePackageNameMut"
|
||||||
|
|
||||||
|
# Mutators that will be uploaded to the workshop
|
||||||
|
# Specify them with a space as a separator,
|
||||||
|
# The order doesn't matter
|
||||||
PackageUpload="SomePackageName SomePackageNameMut"
|
PackageUpload="SomePackageName SomePackageNameMut"
|
||||||
|
25
builder
25
builder
@ -128,8 +128,24 @@ function init_build ()
|
|||||||
fi
|
fi
|
||||||
done < <(find "$MutSource" -mindepth 2 -maxdepth 2 -type d -ipath '*/Classes' | sed -r 's|.+/([^/]+)/[^/]+|\1|' | sort)
|
done < <(find "$MutSource" -mindepth 2 -maxdepth 2 -type d -ipath '*/Classes' | sed -r 's|.+/([^/]+)/[^/]+|\1|' | sort)
|
||||||
|
|
||||||
echo "PackageBuildOrder=\"$PackageList\"" >> "$MutBuildConfig"
|
cat > "$MutBuildConfig" <<EOF
|
||||||
echo "PackageUpload=\"$PackageList\"" >> "$MutBuildConfig"
|
# Build parameters
|
||||||
|
|
||||||
|
# If True - compresses the mutator when compiling
|
||||||
|
# Scripts will be stored in binary form
|
||||||
|
# (reduces the size of the output file)
|
||||||
|
StripSource="True"
|
||||||
|
|
||||||
|
# Mutators to be compiled
|
||||||
|
# Specify them with a space as a separator,
|
||||||
|
# Mutators will be compiled in the specified order
|
||||||
|
PackageBuildOrder="$PackageList"
|
||||||
|
|
||||||
|
# Mutators that will be uploaded to the workshop
|
||||||
|
# Specify them with a space as a separator,
|
||||||
|
# The order doesn't matter
|
||||||
|
PackageUpload="$PackageList"
|
||||||
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
function read_build_settings ()
|
function read_build_settings ()
|
||||||
@ -201,6 +217,7 @@ function compiled ()
|
|||||||
|
|
||||||
function compile ()
|
function compile ()
|
||||||
{
|
{
|
||||||
|
local StripSourceArg=""
|
||||||
local PID=""
|
local PID=""
|
||||||
|
|
||||||
read_build_settings
|
read_build_settings
|
||||||
@ -237,7 +254,9 @@ function compile ()
|
|||||||
cp -rf "$MutConfig"/* "$KFUnpublishConfig"
|
cp -rf "$MutConfig"/* "$KFUnpublishConfig"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
CMD //C "$(cygpath -w "$KFEditor") make -stripsource -useunpublished" &
|
if is_true "$StripSource"; then StripSourceArg="-stripsource"; fi
|
||||||
|
|
||||||
|
CMD //C "$(cygpath -w "$KFEditor") make $StripSourceArg -useunpublished" &
|
||||||
PID="$!"
|
PID="$!"
|
||||||
while ps -p "$PID" &> /dev/null
|
while ps -p "$PID" &> /dev/null
|
||||||
do
|
do
|
||||||
|
@ -8,6 +8,11 @@ function reg_readkey () # $1: path, $2: key
|
|||||||
awk '{ $1=$2=""; print $0 }' )
|
awk '{ $1=$2=""; print $0 }' )
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function is_true () # $1: Bool arg to check
|
||||||
|
{
|
||||||
|
echo "$1" | grep -Piq '^true$'
|
||||||
|
}
|
||||||
|
|
||||||
function get_latest () # $1: Reponame, $2: filename, $3: output filename
|
function get_latest () # $1: Reponame, $2: filename, $3: output filename
|
||||||
{
|
{
|
||||||
local ApiUrl="https://api.github.com/repos/$1/releases/latest"
|
local ApiUrl="https://api.github.com/repos/$1/releases/latest"
|
||||||
|
Loading…
Reference in New Issue
Block a user