Changed package name to KoreBuild.
This commit is contained in:
parent
f53b844807
commit
52c9e72ee1
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0"?>
|
<?xml version="1.0"?>
|
||||||
<package>
|
<package>
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>KBuild</id>
|
<id>KoreBuild</id>
|
||||||
<title>The ProjectK build tools</title>
|
<title>The ProjectK build tools</title>
|
||||||
<version>0.0</version>
|
<version>0.0</version>
|
||||||
<authors>Microsoft</authors>
|
<authors>Microsoft</authors>
|
||||||
|
|
@ -9,4 +9,7 @@
|
||||||
<description>ProjectK build tooling</description>
|
<description>ProjectK build tooling</description>
|
||||||
<language>en-US</language>
|
<language>en-US</language>
|
||||||
</metadata>
|
</metadata>
|
||||||
|
<files>
|
||||||
|
<file src="build\*.*" target="build" />
|
||||||
|
</files>
|
||||||
</package>
|
</package>
|
||||||
|
|
@ -31,15 +31,7 @@ default TEST_DIR='${Path.Combine(TARGET_DIR, "test")}'
|
||||||
}
|
}
|
||||||
|
|
||||||
#nuget-install target='install' description='Copy NuGet packages to local repo'
|
#nuget-install target='install' description='Copy NuGet packages to local repo'
|
||||||
@{
|
nuget-local-publish sourcePackagesDir='${BUILD_DIR}'
|
||||||
var HOME_DIR = E("HOME");
|
|
||||||
if (string.IsNullOrEmpty(HOME_DIR))
|
|
||||||
{
|
|
||||||
HOME_DIR = E("HOMEDRIVE") + E("HOMEPATH");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
copy sourceDir='${BUILD_DIR}' include='*.nupkg' outputDir='${Path.Combine(HOME_DIR, ".nuget")}' overwrite='${true}'
|
|
||||||
|
|
||||||
|
|
||||||
functions @{
|
functions @{
|
||||||
string E(string key) { return Environment.GetEnvironmentVariable(key); }
|
string E(string key) { return Environment.GetEnvironmentVariable(key); }
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,20 @@
|
||||||
|
@{/*
|
||||||
|
|
||||||
|
nuget-local-publish
|
||||||
|
Publishing nuget packages in the source directory to %USERPROFILE%\.nuget
|
||||||
|
|
||||||
|
sourcePackagesDir=''
|
||||||
|
Directory of packages to publish to the local nuget feed
|
||||||
|
|
||||||
|
*/}
|
||||||
|
|
||||||
|
@{
|
||||||
|
var HOME_DIR = Environment.GetEnvironmentVariable("HOME");
|
||||||
|
if (string.IsNullOrEmpty(HOME_DIR))
|
||||||
|
{
|
||||||
|
HOME_DIR = Environment.GetEnvironmentVariable("HOMEDRIVE") +
|
||||||
|
Environment.GetEnvironmentVariable("HOMEPATH");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
copy sourceDir='${sourcePackagesDir}' include='*.nupkg' outputDir='${Path.Combine(HOME_DIR, ".nuget")}' overwrite='${true}'
|
||||||
|
|
@ -27,7 +27,10 @@ default TARGET_DIR='${Path.Combine(BASE_DIR, "artifacts")}'
|
||||||
|
|
||||||
#pack
|
#pack
|
||||||
directory create='${TARGET_DIR}'
|
directory create='${TARGET_DIR}'
|
||||||
nuget-pack nuspecFile='${Path.Combine(BASE_DIR, "build", "KBuild.nuspec")}' packageVersion='${VERSION}' outputDir='${TARGET_DIR}'
|
nuget-pack nuspecFile='${Path.Combine(BASE_DIR, "KoreBuild.nuspec")}' packageVersion='${VERSION}' outputDir='${TARGET_DIR}'
|
||||||
|
|
||||||
|
#pack-install .pack
|
||||||
|
nuget-local-publish sourcePackagesDir='${TARGET_DIR}'
|
||||||
|
|
||||||
#git-pull target='pull'
|
#git-pull target='pull'
|
||||||
@{
|
@{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue