From 291d833be951ac414dd6ff0e565fad1976afeab6 Mon Sep 17 00:00:00 2001 From: blackspherefollower Date: Tue, 28 Jul 2020 02:17:49 -0700 Subject: [PATCH] build: Attempting to fix installer --- azure-pipelines.yml | 26 ++++++++++++++++++++++++++ nogasm-chart-installer.iss | 8 +++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index dad5fb1..6d8f183 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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 \ No newline at end of file diff --git a/nogasm-chart-installer.iss b/nogasm-chart-installer.iss index 653366f..f89fa6c 100644 --- a/nogasm-chart-installer.iss +++ b/nogasm-chart-installer.iss @@ -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 @@ -23,6 +23,8 @@ OutputBaseFilename=nogasm-chart-installer OutputDir=.\installer LicenseFile=LICENSE +[Dirs] +Name: "{localappdata}\NogasmChart" [Files] Source: "NogasmChart\bin\{#Configuration}\*.exe"; DestDir: "{app}" @@ -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