Skip to content

Commit e4698df

Browse files
Update patch
1 parent f083714 commit e4698df

2 files changed

Lines changed: 18 additions & 28 deletions

File tree

patches/electron-installer-snap.patch

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
diff --git a/src/index.js b/src/index.js
2-
index a6d50fa2acb44a7356c8a74797dd8ca89956c774..047dc1810fe3cac69c32b3dd11801a350514c7ca 100644
2+
index a6d50fa2acb44a7356c8a74797dd8ca89956c774..7ee359b9ff3f201a435eb635ee75ba5b88c04a13 100644
33
--- a/src/index.js
44
+++ b/src/index.js
5-
@@ -90,9 +90,26 @@ class SnapCreator {
5+
@@ -90,9 +90,25 @@ class SnapCreator {
66
await createDesktopFile(snapGuiDir, this.config)
77
await copyIcon(snapGuiDir, this.config)
88
await copyLauncher(snapDir, this.config)
99
+
1010
+ // Copy source directory to snapcraft working directory for LXD compatibility
11-
+ await fs.copy(this.packageDir, path.join(snapDir, 'out'), {
11+
+ await fs.copy(this.packageDir, path.join(snapDir, 'out', path.basename(this.packageDir)), {
1212
+ recursive: true,
1313
+ });
1414
+
@@ -26,7 +26,6 @@ index a6d50fa2acb44a7356c8a74797dd8ca89956c774..047dc1810fe3cac69c32b3dd11801a35
2626
+
2727
+ // Copy the built snap back to the final destination
2828
+ await fs.copy(path.join(snapDir, 'snap.build'), this.snapDestPath)
29-
+
3029
return this.snapDestPath
3130
}
3231

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)