Skip to content

Commit

Permalink
Update build scripts to work
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Jan 7, 2020
1 parent e1681e5 commit fc82421
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion YarnSpinner/YarnSpinner.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<OutputType>Library</OutputType>
<RootNamespace>Yarn</RootNamespace>
<AssemblyName>YarnSpinner</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<ReleaseVersion>0.9</ReleaseVersion>
<NuGetPackageImportStamp>
</NuGetPackageImportStamp>
Expand All @@ -40,6 +40,7 @@
<CodeAnalysisRuleSet>
</CodeAnalysisRuleSet>
<RunCodeAnalysis>false</RunCodeAnalysis>
<TargetFrameworks>.NETFramework,Version=v3.5</TargetFrameworks>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>none</DebugType>
Expand Down
10 changes: 5 additions & 5 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ init_build () {
XBUILD_ARGS="/verbosity:${VERBOSITY} /p:Configuration=${CONFIGURATION}"
if [ "${OSTYPE}" = "linux-gnu" ]; then
FAILED_PREREQ=""
if [ ! $(which xbuild) ]; then
echo "xbuild not installed or not in \$PATH"
if [ ! $(which msbuild) ]; then
echo "msbuild not installed or not in \$PATH"
FAILED_PREREQ="true"
fi
if [ ! $(which nuget) ]; then
Expand All @@ -80,7 +80,7 @@ done

clean_yarnspinner () {
if [ -f YarnSpinner/bin/${CONFIGURATION}/YarnSpinner.dll ]; then
xbuild ${XBUILD_ARGS} /target:clean YarnSpinner.sln
msbuild ${XBUILD_ARGS} /target:clean YarnSpinner.sln
fi
echo "Cleaning documentation"
rm -fvr Documentation/{docbook,html,latex,rtf,xml}
Expand All @@ -90,10 +90,10 @@ clean_yarnspinner () {

build_yarnspinner () {
nuget restore YarnSpinner.sln
xbuild ${XBUILD_ARGS} YarnSpinner.sln
msbuild ${XBUILD_ARGS} YarnSpinner.sln

if [ $? -ne 0 ]; then
echo "Error during: xbuild ${XBUILD_ARGS}"
echo "Error during: msbuild ${XBUILD_ARGS}"
exit 1
fi

Expand Down
2 changes: 1 addition & 1 deletion package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ echo "Packaging Version $FULL_VERSION with Unity..."

OUTFILE="$OUTDIR/YarnSpinner-$FULL_VERSION.unitypackage"

UNITY="/Applications/Unity_2019.1.8f1/Unity.app"
UNITY="/Applications/2019.2.10f1/Unity.app"
UNITY_BINARY="$UNITY/Contents/MacOS/Unity"

if [[ -f $UNITY_BINARY ]]; then
Expand Down

0 comments on commit fc82421

Please sign in to comment.