Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9d62c55

Browse files
committedDec 10, 2024
fix: try fix appImage icon config
Signed-off-by: Innei <[email protected]>
1 parent c8db70b commit 9d62c55

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed
 

‎patches/@pengx17__electron-forge-maker-appimage.patch

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ index 389100d510dd90c10b28d3f3ee0996c01a7714d9..7fa2bfd46bbf7b7d10e4b0190fda6a3f
4141
+ }: MakerOptions): Promise<string[]>
4242
}
4343
diff --git a/dist/src/MakerAppimage.js b/dist/src/MakerAppimage.js
44-
index a57b183ad759c91aa36691a430e87c385ba63f62..a0bce031399f4dbc7cefab9a5c4460ee4cd88518 100644
44+
index a57b183ad759c91aa36691a430e87c385ba63f62..032877c9fd3fe2dd6905e75de76c17936b19534e 100644
4545
--- a/dist/src/MakerAppimage.js
4646
+++ b/dist/src/MakerAppimage.js
4747
@@ -48,7 +48,7 @@ const isIForgeResolvableMaker = (maker) => {
@@ -53,3 +53,15 @@ index a57b183ad759c91aa36691a430e87c385ba63f62..a0bce031399f4dbc7cefab9a5c4460ee
5353
this.defaultPlatforms = ["linux"];
5454
}
5555
isSupportedOnCurrentPlatform() {
56+
@@ -65,9 +65,9 @@ class MakerAppImage extends maker_base_1.default {
57+
const executableName = forgeConfig.packagerConfig.executableName || appName;
58+
// Check for any optional configuration data passed in from forge config, specific to this maker.
59+
let config;
60+
- const maker = forgeConfig.makers.find((maker) => isIForgeResolvableMaker(maker) && maker.name === makerPackageName);
61+
+ const maker = forgeConfig.makers.find((maker) => maker?.name === makerPackageName);
62+
if (maker !== undefined && isIForgeResolvableMaker(maker)) {
63+
- config = maker.config;
64+
+ config = maker.configOrConfigFetcher?.config;
65+
}
66+
const appFileName = `${appName}-${packageJSON.version}.AppImage`;
67+
const appPath = path_1.default.join(makeDir, appFileName);

‎pnpm-lock.yaml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.