-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(build): fix Deploy project for Linux and add helper scripts
There's a bug/feature in msbuild for Linux which "helpfully" replaces backslashes with forward slashes while parsing project files. While in general this is useful for cross-platform compatibility with filenames, it is a major issue when using regular expressions or, indeed, any other situation in which a backslash is explicitly required. See : dotnet/msbuild#3468
- Loading branch information
Showing
6 changed files
with
40 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
# Builds the Debug binaries and deploys them to your KSP Directory | ||
|
||
if ! command -v msbuild &>/dev/null | ||
then | ||
echo Could not find 'msbuild' in the path. Please ensure it is installed properly. | ||
exit 1 | ||
fi | ||
|
||
cd "$(dirname "$0")" | ||
msbuild Deploy.proj /target:Deploy-DEBUG | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
# Builds the Release binaries and deploys them to your KSP Directory | ||
|
||
if ! command -v msbuild &>/dev/null | ||
then | ||
echo Could not find 'msbuild' in the path. Please ensure it is installed properly. | ||
exit 1 | ||
fi | ||
|
||
cd "$(dirname "$0")" | ||
msbuild Deploy.proj /target:Deploy | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
# Builds and packages the release | ||
|
||
if ! command -v msbuild &>/dev/null | ||
then | ||
echo Could not find 'msbuild' in the path. Please ensure it is installed properly. | ||
exit 1 | ||
fi | ||
|
||
cd "$(dirname "$0")" | ||
msbuild Deploy.proj /target:Release | ||
|