Skip to content

Commit

Permalink
refactor: migrate from asar to @electron/asar (#1431)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarshallOfSound authored Oct 18, 2022
1 parent 274c686 commit 21bb953
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
### Changed

* Replaced `electron-osx-sign` with `@electron/osx-sign`. The accepted properties on the `osxSign` options object are now slightly different. Please see the [migration guide](https://github.com/electron/osx-sign/blob/main/MIGRATION.md) for more information on these changes.
* Replaced `asar` with `@electron/asar`. The configuration options are unchanged, this migration is purely cosmetic.

### Fixed

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
"usage.txt"
],
"dependencies": {
"@electron/asar": "^3.2.1",
"@electron/get": "^2.0.0",
"@electron/osx-sign": "^1.0.1",
"@electron/universal": "^1.2.1",
"asar": "^3.1.0",
"@electron/universal": "^1.3.2",
"cross-spawn-windows-exe": "^1.2.0",
"debug": "^4.0.1",
"electron-notarize": "^1.1.1",
Expand Down
2 changes: 1 addition & 1 deletion src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// * Mark Lee <https://github.com/malept>
// * Florian Keller <https://github.com/ffflorian>

import { CreateOptions as AsarOptions } from 'asar';
import { CreateOptions as AsarOptions } from '@electron/asar';
import { ElectronDownloadRequestOptions as ElectronDownloadOptions } from '@electron/get';
import {
LegacyNotarizeCredentials,
Expand Down
2 changes: 1 addition & 1 deletion src/platform.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const asar = require('asar')
const asar = require('@electron/asar')
const crypto = require('crypto')
const debug = require('debug')('electron-packager')
const fs = require('fs-extra')
Expand Down

0 comments on commit 21bb953

Please sign in to comment.