|
@@ -16,7 +16,7 @@ There are three ways to create a `.snap` file:
|
|
|
1) Using [Electron Forge][electron-forge] or
|
|
|
[`electron-builder`][electron-builder], both tools that come with `snap`
|
|
|
support out of the box. This is the easiest option.
|
|
|
-2) Using `electron-installer-snap`, which takes `electron-packager`'s output.
|
|
|
+2) Using `electron-installer-snap`, which takes `@electron/packager`'s output.
|
|
|
3) Using an already created `.deb` package.
|
|
|
|
|
|
In some cases, you will need to have the `snapcraft` tool installed.
|
|
@@ -35,7 +35,7 @@ npm install --save-dev electron-installer-snap
|
|
|
|
|
|
### Step 1: Package Your Electron Application
|
|
|
|
|
|
-Package the application using [electron-packager][electron-packager] (or a
|
|
|
+Package the application using [@electron/packager][electron-packager] (or a
|
|
|
similar tool). Make sure to remove `node_modules` that you don't need in your
|
|
|
final application, since any module you don't actually need will increase
|
|
|
your application's size.
|
|
@@ -79,7 +79,7 @@ snap(options)
|
|
|
.then(snapPath => console.log(`Created snap at ${snapPath}!`))
|
|
|
```
|
|
|
|
|
|
-## Using `snapcraft` with `electron-packager`
|
|
|
+## Using `snapcraft` with `@electron/packager`
|
|
|
|
|
|
### Step 1: Create Sample Snapcraft Project
|
|
|
|
|
@@ -113,7 +113,7 @@ parts:
|
|
|
plugin: nil
|
|
|
source: https://github.com/electron/electron-quick-start.git
|
|
|
override-build: |
|
|
|
- npm install electron electron-packager
|
|
|
+ npm install electron @electron/packager
|
|
|
npx electron-packager . --overwrite --platform=linux --output=release-build --prune=true
|
|
|
cp -rv ./electron-quick-start-linux-* $SNAPCRAFT_PART_INSTALL/electron-quick-start
|
|
|
build-snaps:
|
|
@@ -266,7 +266,7 @@ Finally, configure your application's environment for PipeWire:
|
|
|
```
|
|
|
|
|
|
[snapcraft-syntax]: https://docs.snapcraft.io/build-snaps/syntax
|
|
|
-[electron-packager]: https://github.com/electron/electron-packager
|
|
|
+[electron-packager]: https://github.com/electron/packager
|
|
|
[electron-forge]: https://github.com/electron/forge
|
|
|
[electron-builder]: https://github.com/electron-userland/electron-builder
|
|
|
[electron-installer-debian]: https://github.com/electron-userland/electron-installer-debian
|