Skip to content

Commit

Permalink
Update 'ckan ksp fake' syntax for dummy instances (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
HebaruSan authored Jun 27, 2019
2 parents 4284f1f + be1aac8 commit 7b87548
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 10 additions & 1 deletion CKAN-meta/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,16 @@ create_dummy_ksp() {
fi

# Create dummy install.
mono ckan.exe ksp fake --set-default --headless "$KSP_NAME" dummy_ksp "$KSP_VERSION" 1.1.0
# The DLCs are simulated depending on the version.
if versions_less_or_equal "1.7.1" "$KSP_VERSION"
then
mono ckan.exe ksp fake --set-default --headless "$KSP_NAME" dummy_ksp "$KSP_VERSION" --MakingHistory 1.1.0 --BreakingGround 1.0.0
elif versions_less_or_equal "1.4.1" "$KSP_VERSION"
then
mono ckan.exe ksp fake --set-default --headless "$KSP_NAME" dummy_ksp "$KSP_VERSION" --MakingHistory 1.1.0
else
mono ckan.exe ksp fake --set-default --headless "$KSP_NAME" dummy_ksp "$KSP_VERSION"
fi

# Add other compatible versions.
for compVer in "${COMPAT_VERSIONS[@]}"
Expand Down
11 changes: 10 additions & 1 deletion NetKAN/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,16 @@ create_dummy_ksp() {
fi

# Create dummy install.
mono ckan.exe ksp fake --set-default --headless "$KSP_NAME" dummy_ksp "$KSP_VERSION" 1.1.0
# The DLCs are simulated depending on the version.
if versions_less_or_equal "1.7.1" "$KSP_VERSION"
then
mono ckan.exe ksp fake --set-default --headless "$KSP_NAME" dummy_ksp "$KSP_VERSION" --MakingHistory 1.1.0 --BreakingGround 1.0.0
elif versions_less_or_equal "1.4.1" "$KSP_VERSION"
then
mono ckan.exe ksp fake --set-default --headless "$KSP_NAME" dummy_ksp "$KSP_VERSION" --MakingHistory 1.1.0
else
mono ckan.exe ksp fake --set-default --headless "$KSP_NAME" dummy_ksp "$KSP_VERSION"
fi

# Add other compatible versions.
for compVer in "${COMPAT_VERSIONS[@]}"
Expand Down

0 comments on commit 7b87548

Please sign in to comment.