add architecture to installer script (#91)
This commit is contained in:
parent
efc7cf9b98
commit
6de71f133a
|
@ -44,7 +44,7 @@ class NixGoBuilder : GoBuilder {
|
||||||
$installationTemplateLocation = Join-Path -Path $this.InstallationTemplatesLocation -ChildPath $this.InstallationTemplateName
|
$installationTemplateLocation = Join-Path -Path $this.InstallationTemplatesLocation -ChildPath $this.InstallationTemplateName
|
||||||
|
|
||||||
$installationTemplateContent = Get-Content -Path $installationTemplateLocation -Raw
|
$installationTemplateContent = Get-Content -Path $installationTemplateLocation -Raw
|
||||||
$installationTemplateContent = $installationTemplateContent -f $this.Version.ToString(3)
|
$installationTemplateContent = $installationTemplateContent -f $this.Version.ToString(3), $this.Architecture
|
||||||
$installationTemplateContent | Out-File -FilePath $installationScriptLocation
|
$installationTemplateContent | Out-File -FilePath $installationScriptLocation
|
||||||
|
|
||||||
Write-Debug "Done; Installation script location: $installationScriptLocation)"
|
Write-Debug "Done; Installation script location: $installationScriptLocation)"
|
||||||
|
|
|
@ -1,10 +1,11 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
GO_VERSION={0}
|
GO_VERSION={0}
|
||||||
|
ARCH={1}
|
||||||
|
|
||||||
GO_TOOLCACHE_PATH=$AGENT_TOOLSDIRECTORY/go
|
GO_TOOLCACHE_PATH=$AGENT_TOOLSDIRECTORY/go
|
||||||
GO_TOOLCACHE_VERSION_PATH=$GO_TOOLCACHE_PATH/$GO_VERSION
|
GO_TOOLCACHE_VERSION_PATH=$GO_TOOLCACHE_PATH/$GO_VERSION
|
||||||
GO_TOOLCACHE_VERSION_ARCH_PATH=$GO_TOOLCACHE_VERSION_PATH/x64
|
GO_TOOLCACHE_VERSION_ARCH_PATH=$GO_TOOLCACHE_VERSION_PATH/$ARCH
|
||||||
|
|
||||||
echo "Check if Go hostedtoolcache folder exist..."
|
echo "Check if Go hostedtoolcache folder exist..."
|
||||||
if [ ! -d $GO_TOOLCACHE_PATH ]; then
|
if [ ! -d $GO_TOOLCACHE_PATH ]; then
|
||||||
|
@ -22,4 +23,4 @@ cp -R ./* $GO_TOOLCACHE_VERSION_ARCH_PATH
|
||||||
rm $GO_TOOLCACHE_VERSION_ARCH_PATH/setup.sh
|
rm $GO_TOOLCACHE_VERSION_ARCH_PATH/setup.sh
|
||||||
|
|
||||||
echo "Create complete file"
|
echo "Create complete file"
|
||||||
touch $GO_TOOLCACHE_VERSION_PATH/x64.complete
|
touch $GO_TOOLCACHE_VERSION_PATH/$ARCH.complete
|
||||||
|
|
Loading…
Reference in New Issue