Skip to content

Commit

Permalink
fix: Github publishing not working on Linux #229
Browse files Browse the repository at this point in the history
  • Loading branch information
develar committed Mar 11, 2016
1 parent fe6cd77 commit 841f397
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/linuxPackager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ Icon=${this.metadata.name}
private async buildDeb(options: DebOptions, outDir: string, appOutDir: string, arch: string): Promise<string> {
const archName = arch === "ia32" ? "i386" : "amd64"
const target = "deb"
const outFilename = `${this.metadata.name}-${this.metadata.version}-${archName}.${target}`
const destination = path.join(outDir, outFilename)
const destination = path.join(outDir, `${this.metadata.name}-${this.metadata.version}-${archName}.${target}`)
const scripts = await this.scriptFiles
await exec("fpm", [
"-s", "dir",
Expand All @@ -140,7 +139,7 @@ Icon=${this.metadata.name}
"--deb-compression", options.compression || "xz",
appOutDir + "/=/opt/" + this.appName,
].concat(await this.packageFiles))
return outFilename
return destination
}
}

Expand Down
1 change: 1 addition & 0 deletions test/src/helpers/packTester.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ async function packAndCheck(projectDir: string, platforms: string[], packagerOpt

const artifacts: Map<Platform, Array<string>> = new Map()
packager.artifactCreated((file, platform) => {
assertThat(path.isAbsolute(file)).true()
let list = artifacts.get(platform)
if (list == null) {
list = []
Expand Down

0 comments on commit 841f397

Please sign in to comment.