mirror of
https://github.com/tribufu/ServerManagers
synced 2026-05-06 15:17:34 +00:00
Update azure-pipelines.yml for Azure Pipelines
This commit is contained in:
parent
4d235aab27
commit
20c3bbee68
1 changed files with 29 additions and 1 deletions
|
|
@ -75,12 +75,40 @@ stages:
|
||||||
configuration: '$(BuildConfiguration)'
|
configuration: '$(BuildConfiguration)'
|
||||||
clean: true
|
clean: true
|
||||||
|
|
||||||
|
- task: PowerShell@2
|
||||||
|
displayName: Create Installer Script File
|
||||||
|
inputs:
|
||||||
|
targetType: 'inline'
|
||||||
|
script: |
|
||||||
|
$appVersion = $(Build.BuildNumber)
|
||||||
|
$appVersionShort = $AppVersion.Substring(0, $appVersion.LastIndexOf('.'))
|
||||||
|
$appVersionWithUnderscores = $appVersion.Replace('.', '_')
|
||||||
|
$publishPath = $(Build.ArtifactStagingDirectory)\bin
|
||||||
|
$installTextFile = '.azure/scripts/Installer.txt'
|
||||||
|
|
||||||
|
$installTextFileContent = @"
|
||||||
|
#define AppVer "$($appVersionShort)"
|
||||||
|
#define AppVerFull "$($appVersion)"
|
||||||
|
#define AppVerPath "$($appVersionWithUnderscores)"
|
||||||
|
#define RootPath "$($publishPath)"
|
||||||
|
"@
|
||||||
|
$installTextFileContent | Out-File -LiteralPath:$installTextFile -Force -Encoding ascii
|
||||||
|
pwsh: true
|
||||||
|
|
||||||
|
- task: Installer@1
|
||||||
|
inputs:
|
||||||
|
version: '6.0.5'
|
||||||
|
|
||||||
|
- task: Build@1
|
||||||
|
displayName: 'Build Inno Setup File'
|
||||||
|
inputs:
|
||||||
|
file: .azure/scripts/ArkServerManager.iss
|
||||||
|
|
||||||
- task: CopyFiles@2
|
- task: CopyFiles@2
|
||||||
displayName: 'Copy Artifact Files'
|
displayName: 'Copy Artifact Files'
|
||||||
inputs:
|
inputs:
|
||||||
SourceFolder: '$(Build.SourcesDirectory)'
|
SourceFolder: '$(Build.SourcesDirectory)'
|
||||||
Contents: |
|
Contents: |
|
||||||
.azure/scripts/$(ApplicationName).iss
|
|
||||||
src/$(ApplicationName)/VersionFeed.xml
|
src/$(ApplicationName)/VersionFeed.xml
|
||||||
src/$(ApplicationName)/VersionFeedBeta.xml
|
src/$(ApplicationName)/VersionFeedBeta.xml
|
||||||
src/$(ApplicationName)/Art\favicon.ico
|
src/$(ApplicationName)/Art\favicon.ico
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue