mirror of
https://github.com/kopia/kopia.git
synced 2026-03-11 10:46:25 -04:00
* build(deps): bump the kopia-ui-npm-dependencies group Bumps the kopia-ui-npm-dependencies group in /app with 10 updates: | Package | From | To | | --- | --- | --- | | [electron-is-dev](https://github.com/sindresorhus/electron-is-dev) | `2.0.0` | `3.0.1` | | [electron-log](https://github.com/megahertz/electron-log) | `5.0.3` | `5.1.1` | | [electron-updater](https://github.com/electron-userland/electron-builder/tree/HEAD/packages/electron-updater) | `6.1.7` | `6.1.8` | | [semver](https://github.com/npm/node-semver) | `7.5.4` | `7.6.0` | | [@electron/notarize](https://github.com/electron/notarize) | `2.2.1` | `2.3.0` | | [@playwright/test](https://github.com/microsoft/playwright) | `1.40.1` | `1.42.1` | | [dotenv](https://github.com/motdotla/dotenv) | `16.3.1` | `16.4.5` | | [electron](https://github.com/electron/electron) | `28.1.0` | `29.1.0` | | [playwright](https://github.com/microsoft/playwright) | `1.40.1` | `1.42.1` | | [playwright-core](https://github.com/microsoft/playwright) | `1.40.1` | `1.42.1` | Updates `electron-is-dev` from 2.0.0 to 3.0.1 - [Release notes](https://github.com/sindresorhus/electron-is-dev/releases) - [Commits](https://github.com/sindresorhus/electron-is-dev/compare/v2.0.0...v3.0.1) Updates `electron-log` from 5.0.3 to 5.1.1 - [Changelog](https://github.com/megahertz/electron-log/blob/master/CHANGELOG.md) - [Commits](https://github.com/megahertz/electron-log/compare/v5.0.3...v5.1.1) Updates `electron-updater` from 6.1.7 to 6.1.8 - [Release notes](https://github.com/electron-userland/electron-builder/releases) - [Changelog](https://github.com/electron-userland/electron-builder/blob/master/packages/electron-updater/CHANGELOG.md) - [Commits](https://github.com/electron-userland/electron-builder/commits/electron-updater@6.1.8/packages/electron-updater) Updates `semver` from 7.5.4 to 7.6.0 - [Release notes](https://github.com/npm/node-semver/releases) - [Changelog](https://github.com/npm/node-semver/blob/main/CHANGELOG.md) - [Commits](https://github.com/npm/node-semver/compare/v7.5.4...v7.6.0) Updates `@electron/notarize` from 2.2.1 to 2.3.0 - [Release notes](https://github.com/electron/notarize/releases) - [Changelog](https://github.com/electron/notarize/blob/main/.releaserc.json) - [Commits](https://github.com/electron/notarize/compare/v2.2.1...v2.3.0) Updates `@playwright/test` from 1.40.1 to 1.42.1 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](https://github.com/microsoft/playwright/compare/v1.40.1...v1.42.1) Updates `dotenv` from 16.3.1 to 16.4.5 - [Changelog](https://github.com/motdotla/dotenv/blob/master/CHANGELOG.md) - [Commits](https://github.com/motdotla/dotenv/compare/v16.3.1...v16.4.5) Updates `electron` from 28.1.0 to 29.1.0 - [Release notes](https://github.com/electron/electron/releases) - [Changelog](https://github.com/electron/electron/blob/main/docs/breaking-changes.md) - [Commits](https://github.com/electron/electron/compare/v28.1.0...v29.1.0) Updates `playwright` from 1.40.1 to 1.42.1 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](https://github.com/microsoft/playwright/compare/v1.40.1...v1.42.1) Updates `playwright-core` from 1.40.1 to 1.42.1 - [Release notes](https://github.com/microsoft/playwright/releases) - [Commits](https://github.com/microsoft/playwright/compare/v1.40.1...v1.42.1) --- updated-dependencies: - dependency-name: electron-is-dev dependency-type: direct:production update-type: version-update:semver-major dependency-group: kopia-ui-npm-dependencies - dependency-name: electron-log dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kopia-ui-npm-dependencies - dependency-name: electron-updater dependency-type: direct:production update-type: version-update:semver-patch dependency-group: kopia-ui-npm-dependencies - dependency-name: semver dependency-type: direct:production update-type: version-update:semver-minor dependency-group: kopia-ui-npm-dependencies - dependency-name: "@electron/notarize" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: kopia-ui-npm-dependencies - dependency-name: "@playwright/test" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: kopia-ui-npm-dependencies - dependency-name: dotenv dependency-type: direct:development update-type: version-update:semver-minor dependency-group: kopia-ui-npm-dependencies - dependency-name: electron dependency-type: direct:development update-type: version-update:semver-major dependency-group: kopia-ui-npm-dependencies - dependency-name: playwright dependency-type: direct:development update-type: version-update:semver-minor dependency-group: kopia-ui-npm-dependencies - dependency-name: playwright-core dependency-type: direct:development update-type: version-update:semver-minor dependency-group: kopia-ui-npm-dependencies ... Signed-off-by: dependabot[bot] <support@github.com> * removed dependency on electron-is-dev --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jarek Kowalski <jaak@jkowalski.net>
42 lines
1.3 KiB
JavaScript
42 lines
1.3 KiB
JavaScript
const { app } = require('electron');
|
|
const path = require('path');
|
|
|
|
const osShortName = function() {
|
|
switch (process.platform) {
|
|
case "win32":
|
|
return "win"
|
|
case "darwin":
|
|
return "mac"
|
|
case "linux":
|
|
return "linux"
|
|
default:
|
|
return null
|
|
}
|
|
}();
|
|
|
|
module.exports = {
|
|
resourcesPath: function () {
|
|
if (!app.isPackaged) {
|
|
return path.join(__dirname, "..", "resources", osShortName);
|
|
}
|
|
return process.resourcesPath;
|
|
},
|
|
defaultServerBinary: function () {
|
|
if (!app.isPackaged) {
|
|
return {
|
|
"mac": path.join(__dirname, "..", "..", "dist", "kopia_darwin_amd64", "kopia"),
|
|
"win": path.join(__dirname, "..", "..", "dist", "kopia_windows_amd64", "kopia.exe"),
|
|
"linux": path.join(__dirname, "..", "..", "dist", "kopia_linux_amd64", "kopia"),
|
|
}[osShortName]
|
|
}
|
|
|
|
return {
|
|
"mac": path.join(process.resourcesPath, "server", "kopia"),
|
|
"win": path.join(process.resourcesPath, "server", "kopia.exe"),
|
|
"linux": path.join(process.resourcesPath, "server", "kopia"),
|
|
}[osShortName]
|
|
},
|
|
selectByOS: function (x) {
|
|
return x[osShortName]
|
|
},
|
|
} |