mirror of
https://github.com/tribufu/ServerManagers
synced 2026-06-01 09:42:39 +00:00
Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
parent
73ef0f01b6
commit
94a4da1f39
1 changed files with 11 additions and 7 deletions
|
|
@ -77,30 +77,34 @@ stages:
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: Create Installer Script File
|
displayName: Create Installer Script File
|
||||||
|
env:
|
||||||
|
BUILD_BUILDNUMBER: $(Build.BuildNumber)
|
||||||
|
BUILD_ARTIFACTSTAGINGDIRECTORY: $(Build.ArtifactStagingDirectory)
|
||||||
inputs:
|
inputs:
|
||||||
targetType: 'inline'
|
targetType: 'inline'
|
||||||
script: |
|
script: |
|
||||||
$appVersion = $(Build.BuildNumber)
|
$appVersion = $(Build.BuildNumber)
|
||||||
$appVersionShort = $AppVersion.Substring(0, $appVersion.LastIndexOf('.'))
|
$appVersionShort = $appVersion.Substring(0, $appVersion.LastIndexOf('.'))
|
||||||
$appVersionWithUnderscores = $appVersion.Replace('.', '_')
|
$appVersionWithUnderscores = $appVersion.Replace('.', '_')
|
||||||
$publishPath = $(Build.ArtifactStagingDirectory)\bin
|
$publishPath = $(Build.ArtifactStagingDirectory)\bin
|
||||||
$installTextFile = '.azure/scripts/Installer.txt'
|
$installTextFile = '.azure/scripts/Installer.txt'
|
||||||
|
|
||||||
$installTextFileContent = @"
|
$installTextFileContent = @"
|
||||||
#define AppVer "$($appVersionShort)"
|
#define AppVer "$appVersionShort"
|
||||||
#define AppVerFull "$($appVersion)"
|
#define AppVerFull "$appVersion"
|
||||||
#define AppVerPath "$($appVersionWithUnderscores)"
|
#define AppVerPath "$appVersionWithUnderscores"
|
||||||
#define RootPath "$($publishPath)"
|
#define RootPath "$publishPath"
|
||||||
"@
|
"@
|
||||||
$installTextFileContent | Out-File -LiteralPath:$installTextFile -Force -Encoding ascii
|
$installTextFileContent | Out-File -LiteralPath:$installTextFile -Force -Encoding ascii
|
||||||
pwsh: true
|
pwsh: true
|
||||||
|
|
||||||
- task: Installer@1
|
- task: Installer@1
|
||||||
|
displayName: 'Install Inno Setup'
|
||||||
inputs:
|
inputs:
|
||||||
version: '6.0.5'
|
version: '6.0.5'
|
||||||
|
|
||||||
- task: Build@1
|
- task: Build@1
|
||||||
displayName: 'Build Inno Setup File'
|
displayName: 'Build Setup File'
|
||||||
inputs:
|
inputs:
|
||||||
file: .azure/scripts/ArkServerManager.iss
|
file: .azure/scripts/ArkServerManager.iss
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue