Preserve original filename in build-msi action

This commit is contained in:
Mislav Marohnić 2020-01-09 14:56:43 +01:00
parent 30d06c13ba
commit 88f0f3a8b2
3 changed files with 9203 additions and 9206 deletions

View file

@ -1,9 +1,6 @@
name: 'Build MSI'
description: 'Build, sign, and release Windows installers using WiX'
inputs:
version:
description: 'what version to use for the built MSI'
required: true
exe:
description: 'path to exe to wrap in MSI '
required: true

File diff suppressed because one or more lines are too long

View file

@ -42,7 +42,7 @@ async function go_msi(version, exePath) {
console.log(`moving ${exePath} to bin/gh.exe`);
fs.renameSync(exePath, path.join(binPath, 'gh.exe'));
const msiPath = path.join(cwd, 'gh.msi');
const msiPath = path.join(cwd, path.basename(exePath, '.exe') + '.msi');
try {
await exec.exec(