Skip to content

Commit 580eeaa

Browse files
committed
feat(AppImage): ElementaryOS and libappindicator1 support by default
Close #1082
1 parent 37fe293 commit 580eeaa

File tree

7 files changed

+9
-23
lines changed

7 files changed

+9
-23
lines changed

docs/Options.md

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ Most of the options accept `null` — for example, to explicitly set that DMG ic
4141
* [squirrelWindows](#SquirrelWindowsOptions)
4242
* [win Windows Specific Options](#WinBuildOptions)
4343
* [snap [Snap](http://snapcraft.io) Specific Options](#SnapOptions)
44-
* [appImage [AppImage](http://appimage.org) Specific Options](#AppImageOptions)
4544
* [dmg.window DMG Windows Position and Size](#DmgWindow)
4645
* [Fields in the package.json](#Metadata)
4746

@@ -264,12 +263,6 @@ To use Squirrel.Windows please install `electron-builder-squirrel-windows` depen
264263
| plugs | <a name="SnapOptions-plugs"></a><p>The list of [plugs](https://snapcraft.io/docs/reference/interfaces). Defaults to <code>[&quot;home&quot;, &quot;x11&quot;, &quot;unity7&quot;, &quot;browser-support&quot;, &quot;network&quot;, &quot;gsettings&quot;, &quot;pulseaudio&quot;, &quot;opengl&quot;]</code>.</p> <p>If list contains <code>default</code>, it will be replaced to default list, so, <code>[&quot;default&quot;, &quot;foo&quot;]</code> can be used to add custom plug <code>foo</code> in addition to defaults.</p>
265264
| ubuntuAppPlatformContent | <a name="SnapOptions-ubuntuAppPlatformContent"></a><p>Specify <code>ubuntu-app-platform1</code> to use [ubuntu-app-platform](https://insights.ubuntu.com/2016/11/17/how-to-create-snap-packages-on-qt-applications/). Snap size will be greatly reduced, but it is not recommended for now because “the snaps must be connected before running uitk-gallery for the first time”.</p>
266265

267-
<a name="AppImageOptions"></a>
268-
### `appImage` [AppImage](http://appimage.org) Specific Options
269-
| Name | Description
270-
| --- | ---
271-
| includeRequiredLib | <a name="AppImageOptions-includeRequiredLib"></a>Whether to include required system libraries (`gconf2`, `libappindicator1`). Defaults to `false`.
272-
273266
<a name="DmgWindow"></a>
274267
### `dmg.window` DMG Windows Position and Size
275268
| Name | Description

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"7zip-bin": "^2.0.4",
2828
"archiver": "^1.3.0",
2929
"asar-electron-builder": "^0.13.5",
30-
"aws-sdk": "^2.16.0",
30+
"aws-sdk": "^2.17.0",
3131
"bluebird-lst": "^1.0.1",
3232
"chalk": "^1.1.3",
3333
"chromium-pickle-js": "^0.2.0",

packages/electron-builder/src/options/linuxOptions.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,4 @@ export interface SnapOptions extends LinuxBuildOptions {
138138
### `appImage` [AppImage](http://appimage.org) Specific Options
139139
*/
140140
export interface AppImageOptions extends LinuxBuildOptions {
141-
/**
142-
Whether to include required system libraries (`gconf2`, `libappindicator1`). Defaults to `false`.
143-
*/
144-
readonly includeRequiredLib?: boolean | null
145141
}

packages/electron-builder/src/targets/LinuxTargetHelper.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@ export class LinuxTargetHelper {
116116

117117
const category = platformSpecificBuildOptions.category
118118
if (!isEmptyOrSpaces(category)) {
119-
desktopMeta.Categories = category
119+
if (category)
120+
desktopMeta.Categories = category + (category.endsWith(";") ? "" : ";")
120121
}
121122

122123
let data = `[Desktop Entry]`

packages/electron-builder/src/targets/appImage.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ export default class AppImageTarget extends Target {
6363
}
6464
args.push("-map", this.helper.maxIconPath, "/.DirIcon")
6565

66-
if (this.options.includeRequiredLib === true && arch === Arch.x64) {
67-
const libDir = await getBin("AppImage-packages", "16.01.17", "https://bintray.com/electron-userland/bin/download_file?file_path=AppImage-packages-16.01.17-x64.7z", "4a2da2d718bc1f5c6ca2f3a58e0655f39e23450b43e20424679dedf9b9b1ecae")
66+
if (arch === Arch.x64) {
67+
const libDir = await getBin("AppImage-packages", "21.02.17", "https://bintray.com/electron-userland/bin/download_file?file_path=AppImage-packages-21.02.17-x64.7z", "85af3bb0923235608910a5794a7a3ce0d6439614c0ebf9ba7545fd2087c3c152")
6868
args.push("-map", libDir, "/usr/lib")
6969
}
7070

packages/electron-publisher-s3/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
],
1313
"dependencies": {
1414
"fs-extra-p": "^4.0.2",
15-
"aws-sdk": "^2.16.0",
15+
"aws-sdk": "^2.17.0",
1616
"mime": "^1.3.4",
1717
"electron-publish": "~0.0.0-semantic-release",
1818
"electron-builder-util": "~0.0.0-semantic-release"

yarn.lock

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,9 @@ asynckit@^0.4.0:
236236
version "0.4.0"
237237
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
238238

239-
aws-sdk@^2.16.0:
240-
version "2.16.0"
241-
resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.16.0.tgz#c3bf4cac031b5af0db2a0f03e75f59a70ace8ff4"
239+
aws-sdk@^2.17.0:
240+
version "2.17.0"
241+
resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.17.0.tgz#b60351f37a77f04e5441fa900b0aea6df027aae3"
242242
dependencies:
243243
buffer "4.9.1"
244244
crypto-browserify "1.0.9"
@@ -982,10 +982,6 @@ diff@^3.0.0, diff@^3.0.1:
982982
version "0.4.0"
983983
resolved "https://github.com/develar/docdash.git#8b7ce8fe611abdc5885e56048cfcd94f3807da56"
984984

985-
"docdash@https://github.com/develar/docdash/tarball/master":
986-
version "0.4.0"
987-
resolved "https://github.com/develar/docdash/tarball/master#637a3dab2715f5d70a21154cf0560a61b6e92d66"
988-
989985
doctrine@^2.0.0:
990986
version "2.0.0"
991987
resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.0.0.tgz#c73d8d2909d22291e1a007a395804da8b665fe63"

0 commit comments

Comments
 (0)