Skip to content

Commit

Permalink
build: Attempting to fix installer
Browse files Browse the repository at this point in the history
  • Loading branch information
blackspherefollower committed Jul 28, 2020
1 parent 9762a3f commit 291d833
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
26 changes: 26 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,3 +56,29 @@ jobs:
inputs:
targetPath: '$(Build.ArtifactStagingDirectory)'
artifactName: 'win-x64-$(buildConfiguration)'

- job: Deploy
dependsOn:
- Windows
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
pool:
vmImage: 'windows-2019'
steps:
- template: build/setup-variables.yml
- task: DownloadPipelineArtifact@1
displayName: Download Artifacts from other jobs
inputs:
buildType: 'current'
- task: GitHubRelease@0
displayName: Upload NogasmChart Release to Github
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
inputs:
gitHubConnection: "release"
repositoryName: "blackspherefollower/NogasmChart"
action: "create"
tagSource: "auto"
title: "NogasmChart $(gitVersion)"
assets: |
$(System.ArtifactsDirectory)\**\*.zip
$(System.ArtifactsDirectory)\**\*installer.exe
isPreRelease: false
8 changes: 7 additions & 1 deletion nogasm-chart-installer.iss
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ AppName=Nogasm Chart
AppVersion={#Version}
AppPublisher=blackspherefollower
AppPublisherURL=https://github.com/blackspherefollower/NogasmChart
AppId={{0a5b92f6-51e8-11e9-aa5c-0bbc873d2d19}
AppId={{a5fe21fa-4937-4ff3-8fc1-b2c57e5be6ab}
UsePreviousAppDir=yes
DefaultDirName={pf}\NogasmChart
Uninstallable=yes
Expand All @@ -23,6 +23,8 @@ OutputBaseFilename=nogasm-chart-installer
OutputDir=.\installer
LicenseFile=LICENSE

[Dirs]
Name: "{localappdata}\NogasmChart"

[Files]
Source: "NogasmChart\bin\{#Configuration}\*.exe"; DestDir: "{app}"
Expand All @@ -34,6 +36,10 @@ Source: "LICENSE"; DestDir: "{app}"; DestName: "License.txt"
// [Run]
// Filename: "{app}\Readme.txt"; Description: "View the README file"; Flags: postinstall shellexec unchecked


[Icons]
Name: "{commonprograms}\NogasmChart"; Filename: "{app}\NogasmChart.exe"

[Code]
// Uninstall on install code taken from https://stackoverflow.com/a/2099805/4040754
Expand Down

0 comments on commit 291d833

Please sign in to comment.