Skip to content

Commit b884dc1

Browse files
committed
Added support of KoreBuild 1.1.2
1 parent 6513b47 commit b884dc1

File tree

4 files changed

+12
-19
lines changed

4 files changed

+12
-19
lines changed

_generate-resx.shade

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,6 @@ functions @{
276276

277277
private static string GetProjectDirectoryName(string resourceDirPath)
278278
{
279-
const string projectFileName = "project.json";
280279
string rootPath = RemoveLastSlash(Path.GetPathRoot(resourceDirPath));
281280
string projectDirPath = RemoveLastSlash(resourceDirPath);
282281

@@ -287,9 +286,7 @@ functions @{
287286
throw new FileNotFoundException("Project file not exist.");
288287
}
289288

290-
string projectFilePath = Path.Combine(projectDirPath, projectFileName);
291-
if (File.Exists(projectFilePath)
292-
|| Directory.EnumerateFiles(projectDirPath, "*.csproj", SearchOption.TopDirectoryOnly).Any())
289+
if (Directory.EnumerateFiles(projectDirPath, "*.csproj", SearchOption.TopDirectoryOnly).Any())
293290
{
294291
break;
295292
}

build.cmd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
setlocal
44
set ORIGINAL_CURRENT_DIR=%cd%
5-
set KOREBUILD_DOTNET_CHANNEL=preview
6-
set KOREBUILD_DOTNET_VERSION=1.0.0-preview2-003156
75

86
cd %~dp0
97

build.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ cd $PSScriptRoot
3333
$repoFolder = $PSScriptRoot
3434
$env:REPO_FOLDER = $repoFolder
3535

36-
$koreBuildZip="https://github.com/aspnet/KoreBuild/archive/1.0.0.zip"
36+
$koreBuildZip="https://github.com/aspnet/KoreBuild/archive/rel/1.1.2.zip"
3737
if ($env:KOREBUILD_ZIP)
3838
{
3939
$koreBuildZip=$env:KOREBUILD_ZIP

build.sh

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/usr/bin/env bash
22
ORIGINAL_CURRENT_DIR=%cd%
3-
KOREBUILD_DOTNET_CHANNEL=preview
4-
KOREBUILD_DOTNET_VERSION=1.0.0-preview2-003156
53

64
repoFolder="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
75
cd $repoFolder
@@ -13,7 +11,7 @@ if test ! -d $packageDir/NUnit.Runners; then
1311
mono $localNugetPackageManager install NUnit.Runners -Version 3.4.1 -O $packageDir% -ExcludeVersion -NoCache
1412
fi
1513

16-
koreBuildZip="https://github.com/aspnet/KoreBuild/archive/1.0.0.zip"
14+
koreBuildZip="https://github.com/aspnet/KoreBuild/archive/rel/1.1.2.zip"
1715
if [ ! -z $KOREBUILD_ZIP ]; then
1816
koreBuildZip=$KOREBUILD_ZIP
1917
fi
@@ -23,12 +21,12 @@ buildFile="$buildFolder/KoreBuild.sh"
2321

2422
if test ! -d $buildFolder; then
2523
echo "Downloading KoreBuild from $koreBuildZip"
26-
27-
tempFolder="/tmp/KoreBuild-$(uuidgen)"
24+
25+
tempFolder="/tmp/KoreBuild-$(uuidgen)"
2826
mkdir $tempFolder
29-
27+
3028
localZipFile="$tempFolder/korebuild.zip"
31-
29+
3230
retries=6
3331
until (wget -O $localZipFile $koreBuildZip 2>/dev/null || curl -o $localZipFile --location $koreBuildZip 2>/dev/null)
3432
do
@@ -40,17 +38,17 @@ if test ! -d $buildFolder; then
4038
echo "Waiting 10 seconds before retrying. Retries left: $retries"
4139
sleep 10s
4240
done
43-
41+
4442
unzip -q -d $tempFolder $localZipFile
45-
43+
4644
mkdir $buildFolder
4745
cp -r $tempFolder/**/build/** $buildFolder
48-
46+
4947
chmod +x $buildFile
50-
48+
5149
# Cleanup
5250
if test ! -d $tempFolder; then
53-
rm -rf $tempFolder
51+
rm -rf $tempFolder
5452
fi
5553
fi
5654

0 commit comments

Comments
 (0)