Skip to content

Commit

Permalink
update snap
Browse files Browse the repository at this point in the history
  • Loading branch information
beyondkmp committed Oct 12, 2024
1 parent c96f9bf commit d580019
Show file tree
Hide file tree
Showing 9 changed files with 167 additions and 167 deletions.
112 changes: 56 additions & 56 deletions test/snapshots/BuildTest.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4866,45 +4866,45 @@ exports[`posix smart unpack 4`] = `
"app.asar.unpacked/node_modules/keytar/LICENSE.md",
{
"content": "{
\\"main\\": \\"./lib/keytar.js\\",
\\"typings\\": \\"keytar.d.ts\\",
\\"name\\": \\"keytar\\",
\\"description\\": \\"Bindings to native Mac/Linux/Windows password APIs\\",
\\"version\\": \\"7.9.0\\",
\\"license\\": \\"MIT\\",
\\"repository\\": {
\\"type\\": \\"git\\",
\\"url\\": \\"https://github.com/atom/node-keytar.git\\"
main: ./lib/keytar.js,
typings: keytar.d.ts,
name: keytar,
description: Bindings to native Mac/Linux/Windows password APIs,
version: 7.9.0,
license: MIT,
repository: {
type: git,
url: https://github.com/atom/node-keytar.git
},
\\"homepage\\": \\"http://atom.github.io/node-keytar\\",
\\"files\\": [
\\"lib\\",
\\"src\\",
\\"binding.gyp\\",
\\"keytar.d.ts\\"
homepage: http://atom.github.io/node-keytar,
files: [
lib,
src,
binding.gyp,
keytar.d.ts
],
\\"types\\": \\"./keytar.d.ts\\",
\\"devDependencies\\": {
\\"babel-core\\": \\"^6.26.3\\",
\\"babel-plugin-transform-async-to-generator\\": \\"^6.24.1\\",
\\"chai\\": \\"^4.2.0\\",
\\"mocha\\": \\"^9.2.0\\",
\\"node-cpplint\\": \\"~0.4.0\\",
\\"node-gyp\\": \\"^8.4.1\\",
\\"prebuild\\": \\"^11.0.2\\"
types: ./keytar.d.ts,
devDependencies: {
babel-core: ^6.26.3,
babel-plugin-transform-async-to-generator: ^6.24.1,
chai: ^4.2.0,
mocha: ^9.2.0,
node-cpplint: ~0.4.0,
node-gyp: ^8.4.1,
prebuild: ^11.0.2
},
\\"dependencies\\": {
\\"node-addon-api\\": \\"^4.3.0\\",
\\"prebuild-install\\": \\"^7.0.1\\"
dependencies: {
node-addon-api: ^4.3.0,
prebuild-install: ^7.0.1
},
\\"binary\\": {
\\"napi_versions\\": [
binary: {
napi_versions: [
3
]
},
\\"config\\": {
\\"runtime\\": \\"napi\\",
\\"target\\": 3
config: {
runtime: napi,
target: 3
}
}",
"name": "app.asar.unpacked/node_modules/keytar/package.json",
Expand Down Expand Up @@ -5129,29 +5129,29 @@ exports[`win smart unpack 3`] = `
"app.asar.unpacked/node_modules/edge-cs/LICENSE.txt",
{
"content": "{
\\"name\\": \\"edge-cs\\",
\\"author\\": {
\\"name\\": \\"Tomasz Janczuk <[email protected]>\\",
\\"url\\": \\"http://tomasz.janczuk.org\\",
\\"twitter\\": \\"tjanczuk\\"
name: edge-cs,
author: {
name: Tomasz Janczuk <tomasz@janczuk.org>,
url: http://tomasz.janczuk.org,
twitter: tjanczuk
},
\\"version\\": \\"1.2.1\\",
\\"description\\": \\"Edge-cs: run C# and node.js code in-process with edge.js\\",
\\"main\\": \\"./lib/edge-cs.js\\",
\\"engines\\": {
\\"node\\": \\">= 0.8\\"
version: 1.2.1,
description: Edge-cs: run C# and node.js code in-process with edge.js,
main: ./lib/edge-cs.js,
engines: {
node: >= 0.8
},
\\"licenses\\": [
licenses: [
{
\\"type\\": \\"Apache\\",
\\"url\\": \\"http://www.apache.org/licenses/LICENSE-2.0\\"
type: Apache,
url: http://www.apache.org/licenses/LICENSE-2.0
}
],
\\"dependencies\\": {},
\\"homepage\\": \\"http://tjanczuk.github.com/edge\\",
\\"repository\\": {
\\"type\\": \\"git\\",
\\"url\\": \\"[email protected]:tjanczuk/edge-cs.git\\"
dependencies: {},
homepage: http://tjanczuk.github.com/edge,
repository: {
type: git,
url: git@github.com:tjanczuk/edge-cs.git
}
}",
"name": "app.asar.unpacked/node_modules/edge-cs/package.json",
Expand All @@ -5163,8 +5163,8 @@ exports[`win smart unpack 3`] = `
"app.asar.unpacked/node_modules/edge-cs/src/Edge.js.CSharp/gulpfile.js",
{
"content": "{
\\"devDependencies\\": {
\\"gulp\\": \\"3.9.0\\"
devDependencies: {
gulp: 3.9.0
}
}",
"name": "app.asar.unpacked/node_modules/edge-cs/src/Edge.js.CSharp/package.json",
Expand All @@ -5176,17 +5176,17 @@ exports[`win smart unpack 3`] = `
"app.asar.unpacked/node_modules/edge-cs/lib/bootstrap/project.json",
{
"content": "{
\\"name\\": \\"@electron-builder/test-smart-unpack-empty\\",
\\"version\\": \\"1.0.0\\"
name: @electron-builder/test-smart-unpack-empty,
version: 1.0.0
}
",
"name": "app.asar.unpacked/node_modules/@electron-builder/test-smart-unpack-empty/package.json",
},
"app.asar.unpacked/node_modules/@electron-builder/test-smart-unpack/foo.dll",
{
"content": "{
\\"name\\": \\"@electron-builder/test-smart-unpack\\",
\\"version\\": \\"1.0.0\\"
name: @electron-builder/test-smart-unpack,
version: 1.0.0
}
",
"name": "app.asar.unpacked/node_modules/@electron-builder/test-smart-unpack/package.json",
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/configurationValidationTest.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ exports[`appId as 1`] = `
1. Open https://www.electron.build/configuration
2. Search the option name on the page (or type in into Search to find across the docs).
* Not found? The option was deprecated or not exists (check spelling).
* Found? Check that the option in the appropriate place. e.g. \\"title\\" only in the \\"dmg\\", not in the root.
* Found? Check that the option in the appropriate place. e.g. title only in the dmg, not in the root.
"
`;
Expand Down
4 changes: 2 additions & 2 deletions test/snapshots/extraMetadataTest.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ exports[`extra metadata (no asar) 1`] = `
exports[`extra metadata (no asar) 2`] = `
{
"author": "Foo Bar <[email protected]>",
"description": "Test Application (test quite \\" #378)",
"description": "Test Application (test quite #378)",
"foo": {
"bar": 12,
"disabled": false,
Expand Down Expand Up @@ -59,7 +59,7 @@ exports[`extra metadata 1`] = `
exports[`extra metadata 2`] = `
{
"author": "Foo Bar <[email protected]>",
"description": "Test Application (test quite \\" #378)",
"description": "Test Application (test quite #378)",
"foo": {
"bar": 12,
"disabled": false,
Expand Down
12 changes: 6 additions & 6 deletions test/snapshots/linux/debTest.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -422,12 +422,12 @@ exports[`deb file associations 3`] = `
exports[`deb file associations 4`] = `"Test Application (test quite “ #378)"`;

exports[`deb file associations 5`] = `
"<?xml version=\\"1.0\\" encoding=\\"utf-8\\"?>
<mime-info xmlns=\\"http://www.freedesktop.org/standards/shared-mime-info\\">
<mime-type type=\\"application/x-example\\">
<glob pattern=\\"*.my-app\\"/>
"<?xml version=1.0 encoding=utf-8?>
<mime-info xmlns=http://www.freedesktop.org/standards/shared-mime-info>
<mime-type type=application/x-example>
<glob pattern=*.my-app/>
<icon name=\\"x-office-document\\" />
<icon name=x-office-document />
</mime-type>
</mime-info>"
`;
Expand Down Expand Up @@ -522,7 +522,7 @@ exports[`executable path in postinst script 5`] = `
if type update-alternatives 2>/dev/null >&1; then
# Remove previous link if it doesn't use update-alternatives
if [ -L '/usr/bin/Boo' -a -e '/usr/bin/Boo' -a \\"\`readlink '/usr/bin/Boo'\`\\" != '/etc/alternatives/Boo' ]; then
if [ -L '/usr/bin/Boo' -a -e '/usr/bin/Boo' -a \`readlink '/usr/bin/Boo'\` != '/etc/alternatives/Boo' ]; then
rm -f '/usr/bin/Boo'
fi
update-alternatives --install '/usr/bin/Boo' 'Boo' '/opt/foo/Boo' 100 || ln -sf '/opt/foo/Boo' '/usr/bin/Boo'
Expand Down
16 changes: 8 additions & 8 deletions test/snapshots/linux/snapTest.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ exports[`buildPackages 1`] = `
],
},
"gnome-platform-empty-dirs": {
"override-build": "mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/themes\\" mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/icons\\" mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/sounds\\" mkdir $SNAPCRAFT_PART_INSTALL/gnome-platform
"override-build": "mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/themes mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/icons mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/sounds mkdir $SNAPCRAFT_PART_INSTALL/gnome-platform
",
"plugin": "nil",
},
Expand Down Expand Up @@ -538,7 +538,7 @@ exports[`compression option 1`] = `
],
},
"gnome-platform-empty-dirs": {
"override-build": "mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/themes\\" mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/icons\\" mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/sounds\\" mkdir $SNAPCRAFT_PART_INSTALL/gnome-platform
"override-build": "mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/themes mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/icons mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/sounds mkdir $SNAPCRAFT_PART_INSTALL/gnome-platform
",
"plugin": "nil",
},
Expand Down Expand Up @@ -1002,7 +1002,7 @@ exports[`default stagePackages 1`] = `
],
},
"gnome-platform-empty-dirs": {
"override-build": "mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/themes\\" mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/icons\\" mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/sounds\\" mkdir $SNAPCRAFT_PART_INSTALL/gnome-platform
"override-build": "mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/themes mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/icons mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/sounds mkdir $SNAPCRAFT_PART_INSTALL/gnome-platform
",
"plugin": "nil",
},
Expand Down Expand Up @@ -1168,7 +1168,7 @@ exports[`default stagePackages 3`] = `
],
},
"gnome-platform-empty-dirs": {
"override-build": "mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/themes\\" mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/icons\\" mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/sounds\\" mkdir $SNAPCRAFT_PART_INSTALL/gnome-platform
"override-build": "mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/themes mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/icons mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/sounds mkdir $SNAPCRAFT_PART_INSTALL/gnome-platform
",
"plugin": "nil",
},
Expand Down Expand Up @@ -1334,7 +1334,7 @@ exports[`default stagePackages 5`] = `
],
},
"gnome-platform-empty-dirs": {
"override-build": "mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/themes\\" mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/icons\\" mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/sounds\\" mkdir $SNAPCRAFT_PART_INSTALL/gnome-platform
"override-build": "mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/themes mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/icons mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/sounds mkdir $SNAPCRAFT_PART_INSTALL/gnome-platform
",
"plugin": "nil",
},
Expand Down Expand Up @@ -1501,7 +1501,7 @@ exports[`default stagePackages 7`] = `
],
},
"gnome-platform-empty-dirs": {
"override-build": "mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/themes\\" mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/icons\\" mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/sounds\\" mkdir $SNAPCRAFT_PART_INSTALL/gnome-platform
"override-build": "mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/themes mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/icons mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/sounds mkdir $SNAPCRAFT_PART_INSTALL/gnome-platform
",
"plugin": "nil",
},
Expand Down Expand Up @@ -1735,7 +1735,7 @@ exports[`plugs option 1`] = `
],
},
"gnome-platform-empty-dirs": {
"override-build": "mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/themes\\" mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/icons\\" mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/sounds\\" mkdir $SNAPCRAFT_PART_INSTALL/gnome-platform
"override-build": "mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/themes mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/icons mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/sounds mkdir $SNAPCRAFT_PART_INSTALL/gnome-platform
",
"plugin": "nil",
},
Expand Down Expand Up @@ -1936,7 +1936,7 @@ exports[`plugs option 3`] = `
],
},
"gnome-platform-empty-dirs": {
"override-build": "mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/themes\\" mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/icons\\" mkdir -p \\"$SNAPCRAFT_PART_INSTALL/data-dir/sounds\\" mkdir $SNAPCRAFT_PART_INSTALL/gnome-platform
"override-build": "mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/themes mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/icons mkdir -p $SNAPCRAFT_PART_INSTALL/data-dir/sounds mkdir $SNAPCRAFT_PART_INSTALL/gnome-platform
",
"plugin": "nil",
},
Expand Down
6 changes: 3 additions & 3 deletions test/snapshots/mac/macArchiveTest.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -117,17 +117,17 @@ exports[`invalid target 1`] = `
-> Options related to how build macOS targets.
Details:
* configuration.mac.target[0] should be one of these:
{ target, arch? } | \\"7z\\" | \\"default\\" | \\"dir\\" | \\"dmg\\" | \\"mas\\" | \\"mas-dev\\" | \\"pkg\\" | \\"tar.bz2\\" | \\"tar.gz\\" | \\"tar.lz\\" | \\"tar.xz\\" | \\"zip\\"
{ target, arch? } | 7z | default | dir | dmg | mas | mas-dev | pkg | tar.bz2 | tar.gz | tar.lz | tar.xz | zip
Details:
* configuration.mac.target[0] should be an object:
{ target, arch? }
* configuration.mac.target[0] should be one of these:
\\"7z\\" | \\"default\\" | \\"dir\\" | \\"dmg\\" | \\"mas\\" | \\"mas-dev\\" | \\"pkg\\" | \\"tar.bz2\\" | \\"tar.gz\\" | \\"tar.lz\\" | \\"tar.xz\\" | \\"zip\\"
7z | default | dir | dmg | mas | mas-dev | pkg | tar.bz2 | tar.gz | tar.lz | tar.xz | zip
How to fix:
1. Open https://www.electron.build/configuration/mac
2. Search the option name on the page (or type in into Search to find across the docs).
* Not found? The option was deprecated or not exists (check spelling).
* Found? Check that the option in the appropriate place. e.g. \\"title\\" only in the \\"dmg\\", not in the root.
* Found? Check that the option in the appropriate place. e.g. title only in the dmg, not in the root.
"
`;
Expand Down
2 changes: 1 addition & 1 deletion test/snapshots/mac/macCodeSignTest.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ exports[`remove password from log 4`] = `" /p 2c26b46b68ffc68ff99b453c1d30413413

exports[`remove password from log 5`] = `"ConvertTo-SecureString -String 4d967a30111bf29f0eba01c448b375c1629b2fed01cdfcc3aed91f1b57d5dd5e (sha256 hash)"`;

exports[`remove password from log 6`] = `"(Get-PfxData \\"C:\\\\Users\\\\develar\\\\AppData\\\\Local\\\\Temp\\\\electron-builder-yBY8D2\\\\0-1.p12\\" -Password (ConvertTo-SecureString -String 4d967a30111bf29f0eba01c448b375c1629b2fed01cdfcc3aed91f1b57d5dd5e (sha256 hash) -Force -AsPlainText)).EndEntityCertificates.Subject"`;
exports[`remove password from log 6`] = `"(Get-PfxData C:\\\\Users\\\\develar\\\\AppData\\\\Local\\\\Temp\\\\electron-builder-yBY8D2\\\\0-1.p12 -Password (ConvertTo-SecureString -String 4d967a30111bf29f0eba01c448b375c1629b2fed01cdfcc3aed91f1b57d5dd5e (sha256 hash) -Force -AsPlainText)).EndEntityCertificates.Subject"`;
Loading

0 comments on commit d580019

Please sign in to comment.