From fe6cd77d5701d448958bbb363e9d4ab2b8b42318 Mon Sep 17 00:00:00 2001 From: develar Date: Fri, 11 Mar 2016 07:23:14 +0100 Subject: [PATCH 1/2] docs: linux required system packages --- docs/multi-platform-build.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/multi-platform-build.md b/docs/multi-platform-build.md index a137944b6d7..df88b22c8a8 100644 --- a/docs/multi-platform-build.md +++ b/docs/multi-platform-build.md @@ -24,10 +24,16 @@ brew install Caskroom/cask/xquartz wine mono To build app in distributable format for Linux on OS X: ``` -brew install ruby gnu-tar libicns +brew install ruby gnu-tar libicns imagemagick graphicsmagick gem install fpm ``` -Please note — Windows codesign supported currently only on Windows. +## Linux +To build app in distributable format for Linux: +``` +sudo apt-get install icnsutils graphicsmagick +``` + +## Windows -Linux and Windows: not documented yet. \ No newline at end of file +Not documented yet. \ No newline at end of file From 841f3971679e45a4865b4903a8820ff9b92eae07 Mon Sep 17 00:00:00 2001 From: develar Date: Fri, 11 Mar 2016 07:33:52 +0100 Subject: [PATCH 2/2] fix: Github publishing not working on Linux #229 --- src/linuxPackager.ts | 5 ++--- test/src/helpers/packTester.ts | 1 + 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/linuxPackager.ts b/src/linuxPackager.ts index 22110935a81..c5fcc98bd32 100644 --- a/src/linuxPackager.ts +++ b/src/linuxPackager.ts @@ -121,8 +121,7 @@ Icon=${this.metadata.name} private async buildDeb(options: DebOptions, outDir: string, appOutDir: string, arch: string): Promise { 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", @@ -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 } } diff --git a/test/src/helpers/packTester.ts b/test/src/helpers/packTester.ts index ea72b155b99..d9af7632f52 100644 --- a/test/src/helpers/packTester.ts +++ b/test/src/helpers/packTester.ts @@ -68,6 +68,7 @@ async function packAndCheck(projectDir: string, platforms: string[], packagerOpt const artifacts: Map> = new Map() packager.artifactCreated((file, platform) => { + assertThat(path.isAbsolute(file)).true() let list = artifacts.get(platform) if (list == null) { list = []