Skip to content

The VS Code of video editing, built for agents.

TypeScript

Update versioning across applications to 0.129.0, add release workflow for GitHub Actions, and enhance desktop app with CLI installation feature. Introduce new scripts for release management and asset handling, including staging the CLI for distribution. Update dependencies and documentation to reflect changes in the build process and application structure.

konstantin-paulusde6326f42f9c
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
new file mode 100644
index 00000000..9c88883a
--- /dev/null
+++ b/.github/workflows/release.yml
@@ -0,0 +1,53 @@
+name: Release
+
+on:
+ push:
+ tags: ["v*"]
+
+jobs:
+ publish-macos:
+ runs-on: macos-latest
+ permissions:
+ contents: write
+ steps:
+ - uses: actions/checkout@v4
+
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 20
+ cache: npm
+
+ - name: Check versions match tag
+ run: |
+ TAG="${GITHUB_REF_NAME#v}"
+ for PKG in package.json apps/desktop/package.json apps/cli/package.json apps/web/package.json; do
+ V="$(node -p "require('./$PKG').version")"
+ if [ "$V" != "$TAG" ]; then
+ echo "Version mismatch in $PKG: $V, tag is $TAG"
+ exit 1
+ fi
+ done
+
+ - run: npm ci
+
+ - name: Import signing certificate
+ env:
+ MACOS_CERT_P12: ${{ secrets.MACOS_CERT_P12 }}
+ MACOS_CERT_PASSWORD: ${{ secrets.MACOS_CERT_PASSWORD }}
+ run: |
+ KEYCHAIN_PASSWORD="$(uuidgen)"
+ security create-keychain -p "$KEYCHAIN_PASSWORD" build.keychain
+ security default-keychain -s build.keychain
+ security unlock-keychain -p "$KEYCHAIN_PASSWORD" build.keychain
+ echo "$MACOS_CERT_P12" | base64 --decode > cert.p12
+ security import cert.p12 -k build.keychain -P "$MACOS_CERT_PASSWORD" -T /usr/bin/codesign
+ rm cert.p12
+ security set-key-partition-list -S apple-tool:,apple: -s -k "$KEYCHAIN_PASSWORD" build.keychain
+
+ - name: Build, notarize, and publish draft release
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ APPLE_ID: ${{ secrets.APPLE_ID }}
+ APPLE_PASSWORD: ${{ secrets.APPLE_PASSWORD }}
+ APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
+ run: npm run publish --workspace=@diffusionstudio/desktop
diff --git a/apps/cli/package.json b/apps/cli/package.json
index dd29472d..c4ca66f5 100644
--- a/apps/cli/package.json
+++ b/apps/cli/package.json
@@ -1,7 +1,7 @@
{
"name": "@diffusionstudio/cli",
"private": true,
- "version": "0.0.0",
+ "version": "0.129.0",
"license": "MPL-2.0",
"bin": {
"dapi": "./dist/index.js"
diff --git a/apps/cli/src/index.ts b/apps/cli/src/index.ts
index fd26352b..9c9f5ec2 100644
--- a/apps/cli/src/index.ts
+++ b/apps/cli/src/index.ts
@@ -9,6 +9,7 @@ import { existsSync, mkdirSync, readFileSync, statSync, writeFileSync } from "no
import { platform, tmpdir } from "node:os";
import { extname, isAbsolute, join, resolve } from "node:path";
import { Command } from "commander";
+import { version } from "../../../package.json";
import { parseTime, TIME_FPS } from "@diffusionstudio/jsx";
import { cliAPI, waitForCliSocket } from "./cli-client";
import { compileProject } from "./compile-project";
@@ -32,7 +33,7 @@ function openApp(target?: string, background = false): void {
if (isUrl) {
args.push(target!);
} else {
- args.push("-a", APP_NAME);
+ args.push("-a", process.env.DIFFUSION_APP_PATH ?? APP_NAME);
if (target) args.push(target);
}
@@ -957,7 +958,7 @@ const program = new Command();
program
.name("dapi")
.description("CLI for Diffusion Studio")
- .version("0.0.0");
+ .version(version);
program
.command("context")
@@ -1270,4 +1271,7 @@ program
.option("-n, --names-only", "output only family names (one per line, no variant detail)")
.action((opts: ListFontsOptions) => listFonts(opts));
-program.parse();
+// Explicit argv convention: the packaged wrapper runs this bundle on
+// Electron in ELECTRON_RUN_AS_NODE mode, where commander would otherwise
+// detect Electron and drop the script path from argv.
+program.parse(process.argv, { from: "node" });
diff --git a/apps/cli/tsconfig.json b/apps/cli/tsconfig.json
index 6f6d8c8b..af9f7d7d 100644
--- a/apps/cli/tsconfig.json
+++ b/apps/cli/tsconfig.json
@@ -2,8 +2,15 @@
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.tsbuildinfo",
- "lib": ["es2024"],
- "types": ["node"]
+ "lib": [
+ "es2024"
+ ],
+ "types": [
+ "node"
+ ],
+ "resolveJsonModule": true
},
- "include": ["src"]
+ "include": [
+ "src"
+ ]
}
diff --git a/apps/desktop/.gitignore b/apps/desktop/.gitignore
index 4387ed2e..8bca3c77 100644
--- a/apps/desktop/.gitignore
+++ b/apps/desktop/.gitignore
@@ -1,3 +1,4 @@
dist
web
out
+cli
diff --git a/apps/desktop/assets/icon.icns b/apps/desktop/assets/icon.icns
new file mode 100644
index 00000000..7e35c12c
Binary files /dev/null and b/apps/desktop/assets/icon.icns differ
diff --git a/apps/desktop/assets/icon.png b/apps/desktop/assets/icon.png
new file mode 100644
index 00000000..77c1f6ff
Binary files /dev/null and b/apps/desktop/assets/icon.png differ
diff --git a/apps/desktop/forge.config.ts b/apps/desktop/forge.config.ts
index d233c525..a1a03169 100644
--- a/apps/desktop/forge.config.ts
+++ b/apps/desktop/forge.config.ts
@@ -4,15 +4,50 @@
import type { ForgeConfig } from '@electron-forge/shared-types';
import { MakerDMG } from '@electron-forge/maker-dmg';
+import { MakerZIP } from '@electron-forge/maker-zip';
+import { PublisherGithub } from '@electron-forge/publisher-github';
+import { readFileSync } from 'node:fs';
+import { join } from 'node:path';
+
+const { version } = JSON.parse(readFileSync(join(__dirname, '..', '..', 'package.json'), 'utf8'));
const config: ForgeConfig = {
packagerConfig: {
name: 'Diffusion Studio',
+ appBundleId: 'studio.diffusion.editor',
+ appCategoryType: 'public.app-category.video',
+ appVersion: version,
+ icon: './assets/icon',
prune: false,
+ ignore: (path) =>
+ path !== '' &&
+ path !== '/package.json' &&
+ path !== '/dist' &&
+ !path.startsWith('/dist/') &&
+ path !== '/web' &&
+ !path.startsWith('/web/'),
+ // Staged by scripts/stage-cli.mjs; ends up at Contents/Resources/cli.
+ extraResource: ['./cli'],
+ osxSign: process.env.SKIP_SIGN ? undefined : {},
+ osxNotarize:
+ process.env.APPLE_ID && process.env.APPLE_PASSWORD && process.env.APPLE_TEAM_ID
+ ? {
+ appleId: process.env.APPLE_ID,
+ appleIdPassword: process.env.APPLE_PASSWORD,
+ teamId: process.env.APPLE_TEAM_ID,
+ }
+ : undefined,
},
makers: [
- new MakerDMG({})
- ]
+ new MakerZIP({}, ['darwin']),
+ new MakerDMG({ name: `Diffusion-Studio-${process.arch}`, icon: './assets/icon.icns' }),
+ ],
+ publishers: [
+ new PublisherGithub({
+ repository: { owner: 'diffusionstudio', name: 'editor' },
+ draft: true,
+ }),
+ ],
};
export default config;
diff --git a/apps/desktop/package.json b/apps/desktop/package.json
index 2ffa4225..6de246e4 100644
--- a/apps/desktop/package.json
+++ b/apps/desktop/package.json
@@ -1,32 +1,38 @@
{
"name": "@diffusionstudio/desktop",
"private": true,
- "version": "0.0.0",
+ "version": "0.129.0",
"license": "MPL-2.0",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/diffusionstudio/editor.git"
+ },
"main": "dist/main.js",
"scripts": {
"build:preload": "esbuild src/preload.ts --bundle --platform=node --format=cjs --external:electron --outfile=dist/preload.js",
"build:main": "esbuild src/main.ts --bundle --platform=node --format=cjs --external:electron --outfile=dist/main.js",
"build": "npm run check && npm run build:main && npm run build:preload",
"build:web": "npm --prefix ../web run build:desktop",
+ "stage:cli": "npm --prefix ../cli run build && node scripts/stage-cli.mjs",
"check": "tsc --noEmit",
"dev": "npm run build && electron-forge start",
- "package": "npm run build && npm run build:web && electron-forge package",
- "make": "npm run build && npm run build:web && electron-forge make",
- "publish": "npm run build && npm run build:web && electron-forge publish"
+ "package": "npm run build && npm run build:web && npm run stage:cli && electron-forge package",
+ "make": "npm run build && npm run build:web && npm run stage:cli && electron-forge make",
+ "publish": "npm run build && npm run build:web && npm run stage:cli && electron-forge publish",
+ "make:icns": "sh scripts/make-icns.sh"
},
"devDependencies": {
"@electron-forge/cli": "^7.11.1",
- "@electron-forge/maker-deb": "^7.11.1",
"@electron-forge/maker-dmg": "^7.11.1",
- "@electron-forge/maker-squirrel": "^7.11.1",
"@electron-forge/maker-zip": "^7.11.1",
+ "@electron-forge/publisher-github": "^7.11.1",
"@types/node": "^24.10.1",
"electron": "^35.1.2",
"esbuild": "^0.28.1",
"typescript": "~5.9.3"
},
"dependencies": {
- "@diffusionstudio/cli": "*"
+ "@diffusionstudio/cli": "*",
+ "update-electron-app": "^3.0.0"
}
}
diff --git a/apps/desktop/scripts/make-icns.sh b/apps/desktop/scripts/make-icns.sh
new file mode 100755
index 00000000..08957535
--- /dev/null
+++ b/apps/desktop/scripts/make-icns.sh
@@ -0,0 +1,16 @@
+#!/bin/sh
+# Regenerates assets/icon.icns from assets/icon.png (1024x1024).
+# Replace assets/icon.png and run: npm run make:icns
+set -e
+cd "$(dirname "$0")/.."
+
+ICONSET="$(mktemp -d)/icon.iconset"
+mkdir -p "$ICONSET"
+for s in 16 32 128 256 512; do
+ d=$((s * 2))
+ sips -z "$s" "$s" assets/icon.png --out "$ICONSET/icon_${s}x${s}.png" >/dev/null
+ sips -z "$d" "$d" assets/icon.png --out "$ICONSET/icon_${s}x${s}@2x.png" >/dev/null
+done
+iconutil -c icns "$ICONSET" -o assets/icon.icns
+rm -rf "$(dirname "$ICONSET")"
+echo "wrote assets/icon.icns"
diff --git a/apps/desktop/scripts/stage-cli.mjs b/apps/desktop/scripts/stage-cli.mjs
new file mode 100644
index 00000000..2183f24f
--- /dev/null
+++ b/apps/desktop/scripts/stage-cli.mjs
@@ -0,0 +1,87 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+// Stages the dapi CLI into apps/desktop/cli so electron-forge can ship it as
+// an app resource (Contents/Resources/cli). The staged layout:
+// cli/dapi.js bundled CLI (built by apps/cli)
+// cli/node_modules deps the bundle keeps external (esbuild, babel)
+// cli/bin/dapi shell wrapper, the file that gets linked into PATH
+
+import { execFileSync } from "node:child_process";
+import { chmodSync, cpSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
+import { dirname, join } from "node:path";
+import { fileURLToPath } from "node:url";
+
+const desktopDir = join(dirname(fileURLToPath(import.meta.url)), "..");
+const cliDir = join(desktopDir, "..", "cli");
+const stageDir = join(desktopDir, "cli");
+
+// Must match the --external list in the apps/cli build script.
+const EXTERNALS = ["esbuild", "@babel/core", "@babel/preset-typescript", "babel-preset-solid"];
+
+const cliPkg = JSON.parse(readFileSync(join(cliDir, "package.json"), "utf8"));
+
+rmSync(stageDir, { recursive: true, force: true });
+mkdirSync(join(stageDir, "bin"), { recursive: true });
+
+cpSync(join(cliDir, "dist", "index.js"), join(stageDir, "dapi.js"));
+
+writeFileSync(
+ join(stageDir, "package.json"),
+ JSON.stringify(
+ {
+ name: "dapi-runtime",
+ private: true,
+ dependencies: Object.fromEntries(EXTERNALS.map((name) => [name, cliPkg.dependencies[name]])),
+ },
+ null,
+ 2,
+ ),
+);
+
+execFileSync("npm", ["install", "--omit=dev", "--no-audit", "--no-fund", "--no-package-lock"], {
+ cwd: stageDir,
+ stdio: "inherit",
+});
+
+// The wrapper runs the CLI bundle on the app's own Electron binary in Node
+// mode, so users need no separate Node install. It resolves symlinks first
+// because both Homebrew and the in-app installer link it into PATH.
+const wrapper = `#!/bin/sh
+SELF="$0"
+while [ -L "$SELF" ]; do
+ LINK="$(readlink "$SELF")"
+ case "$LINK" in
+ /*) SELF="$LINK" ;;
+ *) SELF="$(dirname "$SELF")/$LINK" ;;
+ esac
+done
+DIR="$(cd "$(dirname "$SELF")" && pwd)"
+export DIFFUSION_APP_PATH="$(cd "$DIR/../../../.." && pwd)"
+ELECTRON_RUN_AS_NODE=1 exec "$DIR/../../../MacOS/Diffusion Studio" "$DIR/../dapi.js" "$@"
+`;
+writeFileSync(join(stageDir, "bin", "dapi"), wrapper);
+chmodSync(join(stageDir, "bin", "dapi"), 0o755);
+
+// Mach-O files inside Resources are not reached by the app-bundle signing
+// pass, and notarization rejects unsigned executables; sign them here.
+if (process.platform === "darwin" && !process.env.SKIP_SIGN) {
+ const identities = execFileSync("security", ["find-identity", "-v", "-p", "codesigning"], {
+ encoding: "utf8",
+ });
+ const identity = identities.match(/"(Developer ID Application: [^"]+)"/)?.[1];
+ if (identity) {
+ const esbuildDir = join(stageDir, "node_modules", "@esbuild");
+ for (const pkg of readdirSync(esbuildDir)) {
+ const bin = join(esbuildDir, pkg, "bin", "esbuild");
+ execFileSync("codesign", ["--force", "--options", "runtime", "--timestamp", "--sign", identity, bin], {
+ stdio: "inherit",
+ });
+ }
+ } else {
+ console.warn("stage-cli: no Developer ID identity found, leaving esbuild binary unsigned");
+ }
+}
+
+console.log(`stage-cli: staged dapi at ${stageDir}`);
diff --git a/apps/desktop/src/main.ts b/apps/desktop/src/main.ts
index ca5ba212..8a4f65a9 100644
--- a/apps/desktop/src/main.ts
+++ b/apps/desktop/src/main.ts
@@ -7,13 +7,19 @@ import { join } from "node:path";
import { open, unlink } from "node:fs/promises";
import { randomUUID } from "node:crypto";
import type { FileHandle } from "node:fs/promises";
+import { updateElectronApp } from "update-electron-app";
import { startCliServer, stopCliServer, isHeadless } from "./cli-server";
+import { setupAppMenu } from "./menu";
import { mainBridge } from "./main-manager";
import { MAIN_CHANNELS } from "./main-channels";
const DEV_URL = "http://localhost:5173";
const AUTH_PROTOCOL = "diffusion";
+if (app.isPackaged && !process.argv.includes("--hidden")) {
+ updateElectronApp({ repo: "diffusionstudio/editor" });
+}
+
const openWrites = new Map<string, { handle: FileHandle; path: string }>();
let mainWindow: BrowserWindow | null = null;
@@ -172,6 +178,7 @@ if (app.requestSingleInstanceLock()) {
});
app.whenReady().then(() => {
+ setupAppMenu();
session.defaultSession.setPermissionRequestHandler((_wc, _permission, callback) => callback(true));
session.defaultSession.setPermissionCheckHandler(() => true);
session.defaultSession.setDevicePermissionHandler(() => true);
diff --git a/apps/desktop/src/menu.ts b/apps/desktop/src/menu.ts
new file mode 100644
index 00000000..45e600b1
--- /dev/null
+++ b/apps/desktop/src/menu.ts
@@ -0,0 +1,73 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+import { app, dialog, Menu } from "electron";
+import { execFile } from "node:child_process";
+import { join } from "node:path";
+import type { MenuItemConstructorOptions } from "electron";
+
+const CLI_LINK_PATH = "/usr/local/bin/dapi";
+
+// Linking into /usr/local/bin needs elevation; osascript shows the standard
+// macOS admin prompt so the app itself never asks for credentials.
+function linkCli(): Promise<void> {
+ const wrapper = join(process.resourcesPath, "cli", "bin", "dapi");
+ const shell = `mkdir -p /usr/local/bin && ln -sf '${wrapper}' '${CLI_LINK_PATH}'`;
+ const script = `do shell script "${shell.replaceAll('"', '\\"')}" with administrator privileges`;
+ return new Promise((resolve, reject) => {
+ execFile("osascript", ["-e", script], (err) => (err ? reject(err) : resolve()));
+ });
+}
+
+async function installCli() {
+ try {
+ await linkCli();
+ await dialog.showMessageBox({
+ type: "info",
+ message: "The dapi command line tool was installed.",
+ detail: `Linked at ${CLI_LINK_PATH}. Run "dapi --help" in a terminal to get started.`,
+ });
+ } catch (e) {
+ const message = (e as Error).message ?? "";
+ if (message.includes("-128")) return; // user cancelled the admin prompt
+ await dialog.showMessageBox({
+ type: "error",
+ message: "Could not install the dapi command line tool.",
+ detail: message,
+ });
+ }
+}
+
+export function setupAppMenu() {
+ if (process.platform !== "darwin") return;
+
+ const template: MenuItemConstructorOptions[] = [
+ {
+ label: app.name,
+ submenu: [
+ { role: "about" },
+ { type: "separator" },
+ {
+ label: "Install dapi Command Line Tool…",
+ enabled: app.isPackaged,
+ click: installCli,
+ },
+ { type: "separator" },
+ { role: "services" },
+ { type: "separator" },
+ { role: "hide" },
+ { role: "hideOthers" },
+ { role: "unhide" },
+ { type: "separator" },
+ { role: "quit" },
+ ],
+ },
+ { role: "fileMenu" },
+ { role: "editMenu" },
+ { role: "viewMenu" },
+ { role: "windowMenu" },
+ ];
+
+ Menu.setApplicationMenu(Menu.buildFromTemplate(template));
+}
diff --git a/apps/web/package.json b/apps/web/package.json
index 4c6a9749..e6107c6e 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -1,7 +1,7 @@
{
"name": "@diffusionstudio/web",
"private": true,
- "version": "0.0.0",
+ "version": "0.129.0",
"license": "MPL-2.0",
"type": "module",
"scripts": {
diff --git a/docs/distribution.md b/docs/distribution.md
new file mode 100644
index 00000000..7afd5f6b
--- /dev/null
+++ b/docs/distribution.md
@@ -0,0 +1,68 @@
+# Distribution (macOS)
+
+The desktop app ships as a signed, notarized macOS build with the `dapi` CLI bundled inside the app (no separate Node or CLI install). Auto-updates come from [update.electronjs.org](https://update.electronjs.org), which serves the ZIP asset of the latest published GitHub release.
+
+## Releasing
+
+There is one global version, shared by the root and all apps (web, desktop, cli); the workflow fails if any of them drift from the tag.
+
+1. `npm run release <patch|minor|major|x.y.z>`: bumps every package.json to the same version, refreshes the lockfile, commits, and tags.
+2. Push as printed by the script: `git push origin HEAD v0.130.0`.
+3. The `Release` workflow builds, signs, notarizes, and uploads a **draft** GitHub release with two assets:
+ - `Diffusion Studio-darwin-arm64-<version>.zip`: consumed by the auto-updater.
+ - `Diffusion-Studio-arm64.dmg`: manual download and Homebrew.
+4. Publish the draft release. Installed apps pick up the update on next launch (checked every 10 minutes while running).
+
+Local equivalent without publishing: `npm run make --workspace=@diffusionstudio/desktop` (artifacts in `apps/desktop/out/make`). Set `SKIP_SIGN=1` to build without a signing identity.
+
+## Required repository secrets
+
+| Secret | Value |
+|---|---|
+| `MACOS_CERT_P12` | Developer ID Application certificate + key, exported as .p12, base64-encoded |
+| `MACOS_CERT_PASSWORD` | Password of the .p12 export |
+| `APPLE_ID` | Apple ID used for notarization |
+| `APPLE_PASSWORD` | App-specific password for that Apple ID (appleid.apple.com) |
+| `APPLE_TEAM_ID` | Team id, e.g. `BYVQNNK2TH` |
+
+## App icon
+
+The current icon is a placeholder. To replace it: overwrite `apps/desktop/assets/icon.png` with a 1024x1024 PNG (transparent background, artwork on the macOS icon grid, i.e. a rounded square of ~824px centered), then run `npm run make:icns --workspace=@diffusionstudio/desktop` and commit both files. The build uses `assets/icon.icns` for the app bundle and the DMG volume.
+
+## Bundled CLI
+
+`dapi` lives at `Diffusion Studio.app/Contents/Resources/cli/bin/dapi`, a wrapper that runs the CLI bundle on the app's own Electron binary (`ELECTRON_RUN_AS_NODE`). Users get it on their PATH via:
+
+- Homebrew: the cask's `binary` stanza links it automatically.
+- Manual install: menu bar > Diffusion Studio > "Install dapi Command Line Tool" links it into `/usr/local/bin`.
+
+## Homebrew cask
+
+Lives in a tap repo (e.g. `diffusionstudio/homebrew-tap`, file `Casks/diffusion-studio.rb`). Update `version` and `sha256` (`shasum -a 256 <dmg>`) per release, or wire up a bump automation later.
+
+```ruby
+cask "diffusion-studio" do
+ version "0.129.0"
+ sha256 "REPLACE_WITH_DMG_SHA256"
+
+ url "https://github.com/diffusionstudio/editor/releases/download/v#{version}/Diffusion-Studio-arm64.dmg"
+ name "Diffusion Studio"
+ desc "Agentic video editor"
+ homepage "https://diffusion.studio"
+
+ depends_on arch: :arm64
+ depends_on macos: ">= :big_sur"
+ auto_updates true
+
+ app "Diffusion Studio.app"
+ binary "#{appdir}/Diffusion Studio.app/Contents/Resources/cli/bin/dapi"
+
+ zap trash: [
+ "~/Library/Application Support/Diffusion Studio",
+ "~/Library/Preferences/studio.diffusion.editor.plist",
+ "~/Library/Saved Application State/studio.diffusion.editor.savedState",
+ ]
+end
+```
+
+Install: `brew install --cask diffusionstudio/tap/diffusion-studio`.
diff --git a/package-lock.json b/package-lock.json
index 14935249..22e1a55f 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -15,7 +15,7 @@
},
"apps/cli": {
"name": "@diffusionstudio/cli",
- "version": "0.0.0",
+ "version": "0.129.0",
"license": "MPL-2.0",
"dependencies": {
"@babel/core": "^7.29.7",
@@ -35,17 +35,17 @@
},
"apps/desktop": {
"name": "@diffusionstudio/desktop",
- "version": "0.0.0",
+ "version": "0.129.0",
"license": "MPL-2.0",
"dependencies": {
- "@diffusionstudio/cli": "*"
+ "@diffusionstudio/cli": "*",
+ "update-electron-app": "^3.0.0"
},
"devDependencies": {
"@electron-forge/cli": "^7.11.1",
- "@electron-forge/maker-deb": "^7.11.1",
"@electron-forge/maker-dmg": "^7.11.1",
- "@electron-forge/maker-squirrel": "^7.11.1",
"@electron-forge/maker-zip": "^7.11.1",
+ "@electron-forge/publisher-github": "^7.11.1",
"@types/node": "^24.10.1",
"electron": "^35.1.2",
"esbuild": "^0.28.1",
@@ -54,7 +54,7 @@
},
"apps/web": {
"name": "@diffusionstudio/web",
- "version": "0.0.0",
+ "version": "0.129.0",
"license": "MPL-2.0",
"dependencies": {
"@diffusionstudio/api-contract": "^0.1.0",
@@ -723,23 +723,6 @@
"node": ">= 16.4.0"
}
},
- "node_modules/@electron-forge/maker-deb": {
- "version": "7.11.2",
- "resolved": "https://registry.npmjs.org/@electron-forge/maker-deb/-/maker-deb-7.11.2.tgz",
- "integrity": "sha512-MYSdCTsqzKNmsmaq7CIFh2kJdBWUZ4njxnVGrIRClzueVITk5Kots3+eQo+e5QQLvXTVn2XTNDc2nYjvtBh+Mw==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@electron-forge/maker-base": "7.11.2",
- "@electron-forge/shared-types": "7.11.2"
- },
- "engines": {
- "node": ">= 16.4.0"
- },
- "optionalDependencies": {
- "electron-installer-debian": "^3.2.0"
- }
- },
"node_modules/@electron-forge/maker-dmg": {
"version": "7.11.2",
"resolved": "https://registry.npmjs.org/@electron-forge/maker-dmg/-/maker-dmg-7.11.2.tgz",
@@ -758,24 +741,6 @@
"electron-installer-dmg": "^5.0.1"
}
},
- "node_modules/@electron-forge/maker-squirrel": {
- "version": "7.11.2",
- "resolved": "https://registry.npmjs.org/@electron-forge/maker-squirrel/-/maker-squirrel-7.11.2.tgz",
- "integrity": "sha512-4CILo57ZDEQH1mJxjhYCSXuv+WaU7oPq67KqiTLEUOEzmiPg9u9/z7FXE34H/Tn5aKWN3dy+ngAETzv6iERCGg==",
- "dev": true,
- "license": "MIT",
- "dependencies": {
- "@electron-forge/maker-base": "7.11.2",
- "@electron-forge/shared-types": "7.11.2",
- "fs-extra": "^10.0.0"
- },
- "engines": {
- "node": ">= 16.4.0"
- },
- "optionalDependencies": {
- "electron-winstaller": "^5.3.0"
- }
- },
"node_modules/@electron-forge/maker-zip": {
"version": "7.11.2",
"resolved": "https://registry.npmjs.org/@electron-forge/maker-zip/-/maker-zip-7.11.2.tgz",
@@ -819,6 +784,30 @@
"node": ">= 16.4.0"
}
},
+ "node_modules/@electron-forge/publisher-github": {
+ "version": "7.11.2",
+ "resolved": "https://registry.npmjs.org/@electron-forge/publisher-github/-/publisher-github-7.11.2.tgz",
+ "integrity": "sha512-1kandHpGPRg2+Lfo6AyI6DtKVMmrc0yyOdJJmo1A7eJO6U8icMGrypSPwOIiTsN6OYJds/vZBzFQ6Vs9rvRsVg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@electron-forge/publisher-base": "7.11.2",
+ "@electron-forge/shared-types": "7.11.2",
+ "@octokit/core": "^5.2.1",
+ "@octokit/plugin-retry": "^6.1.0",
+ "@octokit/request-error": "^5.1.1",
+ "@octokit/rest": "^20.1.2",
+ "@octokit/types": "^6.1.2",
+ "chalk": "^4.0.0",
+ "debug": "^4.3.1",
+ "fs-extra": "^10.0.0",
+ "log-symbols": "^4.0.0",
+ "mime-types": "^2.1.25"
+ },
+ "engines": {
+ "node": ">= 16.4.0"
+ }
+ },
"node_modules/@electron-forge/shared-types": {
"version": "7.11.2",
"resolved": "https://registry.npmjs.org/@electron-forge/shared-types/-/shared-types-7.11.2.tgz",
@@ -2473,6 +2462,327 @@
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
}
},
+ "node_modules/@octokit/auth-token": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-4.0.0.tgz",
+ "integrity": "sha512-tY/msAuJo6ARbK6SPIxZrPBms3xPbfwBrulZe0Wtr/DIY9lje2HeV1uoebShn6mx7SjCHif6EjMvoREj+gZ+SA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/@octokit/core": {
+ "version": "5.2.2",
+ "resolved": "https://registry.npmjs.org/@octokit/core/-/core-5.2.2.tgz",
+ "integrity": "sha512-/g2d4sW9nUDJOMz3mabVQvOGhVa4e/BN/Um7yca9Bb2XTzPPnfTWHWQg+IsEYO7M3Vx+EXvaM/I2pJWIMun1bg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/auth-token": "^4.0.0",
+ "@octokit/graphql": "^7.1.0",
+ "@octokit/request": "^8.4.1",
+ "@octokit/request-error": "^5.1.1",
+ "@octokit/types": "^13.0.0",
+ "before-after-hook": "^2.2.0",
+ "universal-user-agent": "^6.0.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/@octokit/core/node_modules/@octokit/openapi-types": {
+ "version": "24.2.0",
+ "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz",
+ "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@octokit/core/node_modules/@octokit/types": {
+ "version": "13.10.0",
+ "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz",
+ "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/openapi-types": "^24.2.0"
+ }
+ },
+ "node_modules/@octokit/endpoint": {
+ "version": "9.0.6",
+ "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-9.0.6.tgz",
+ "integrity": "sha512-H1fNTMA57HbkFESSt3Y9+FBICv+0jFceJFPWDePYlR/iMGrwM5ph+Dd4XRQs+8X+PUFURLQgX9ChPfhJ/1uNQw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/types": "^13.1.0",
+ "universal-user-agent": "^6.0.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/@octokit/endpoint/node_modules/@octokit/openapi-types": {
+ "version": "24.2.0",
+ "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz",
+ "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@octokit/endpoint/node_modules/@octokit/types": {
+ "version": "13.10.0",
+ "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz",
+ "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/openapi-types": "^24.2.0"
+ }
+ },
+ "node_modules/@octokit/graphql": {
+ "version": "7.1.1",
+ "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-7.1.1.tgz",
+ "integrity": "sha512-3mkDltSfcDUoa176nlGoA32RGjeWjl3K7F/BwHwRMJUW/IteSa4bnSV8p2ThNkcIcZU2umkZWxwETSSCJf2Q7g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/request": "^8.4.1",
+ "@octokit/types": "^13.0.0",
+ "universal-user-agent": "^6.0.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/@octokit/graphql/node_modules/@octokit/openapi-types": {
+ "version": "24.2.0",
+ "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz",
+ "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@octokit/graphql/node_modules/@octokit/types": {
+ "version": "13.10.0",
+ "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz",
+ "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/openapi-types": "^24.2.0"
+ }
+ },
+ "node_modules/@octokit/openapi-types": {
+ "version": "12.11.0",
+ "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-12.11.0.tgz",
+ "integrity": "sha512-VsXyi8peyRq9PqIz/tpqiL2w3w80OgVMwBHltTml3LmVvXiphgeqmY9mvBw9Wu7e0QWk/fqD37ux8yP5uVekyQ==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@octokit/plugin-paginate-rest": {
+ "version": "11.4.4-cjs.2",
+ "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-11.4.4-cjs.2.tgz",
+ "integrity": "sha512-2dK6z8fhs8lla5PaOTgqfCGBxgAv/le+EhPs27KklPhm1bKObpu6lXzwfUEQ16ajXzqNrKMujsFyo9K2eaoISw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/types": "^13.7.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "peerDependencies": {
+ "@octokit/core": "5"
+ }
+ },
+ "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/openapi-types": {
+ "version": "24.2.0",
+ "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz",
+ "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": {
+ "version": "13.10.0",
+ "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz",
+ "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/openapi-types": "^24.2.0"
+ }
+ },
+ "node_modules/@octokit/plugin-request-log": {
+ "version": "4.0.1",
+ "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-4.0.1.tgz",
+ "integrity": "sha512-GihNqNpGHorUrO7Qa9JbAl0dbLnqJVrV8OXe2Zm5/Y4wFkZQDfTreBzVmiRfJVfE4mClXdihHnbpyyO9FSX4HA==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 18"
+ },
+ "peerDependencies": {
+ "@octokit/core": "5"
+ }
+ },
+ "node_modules/@octokit/plugin-rest-endpoint-methods": {
+ "version": "13.3.2-cjs.1",
+ "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.3.2-cjs.1.tgz",
+ "integrity": "sha512-VUjIjOOvF2oELQmiFpWA1aOPdawpyaCUqcEBc/UOUnj3Xp6DJGrJ1+bjUIIDzdHjnFNO6q57ODMfdEZnoBkCwQ==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/types": "^13.8.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "peerDependencies": {
+ "@octokit/core": "^5"
+ }
+ },
+ "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/openapi-types": {
+ "version": "24.2.0",
+ "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz",
+ "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types": {
+ "version": "13.10.0",
+ "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz",
+ "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/openapi-types": "^24.2.0"
+ }
+ },
+ "node_modules/@octokit/plugin-retry": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/@octokit/plugin-retry/-/plugin-retry-6.1.0.tgz",
+ "integrity": "sha512-WrO3bvq4E1Xh1r2mT9w6SDFg01gFmP81nIG77+p/MqW1JeXXgL++6umim3t6x0Zj5pZm3rXAN+0HEjmmdhIRig==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/request-error": "^5.0.0",
+ "@octokit/types": "^13.0.0",
+ "bottleneck": "^2.15.3"
+ },
+ "engines": {
+ "node": ">= 18"
+ },
+ "peerDependencies": {
+ "@octokit/core": "5"
+ }
+ },
+ "node_modules/@octokit/plugin-retry/node_modules/@octokit/openapi-types": {
+ "version": "24.2.0",
+ "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz",
+ "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@octokit/plugin-retry/node_modules/@octokit/types": {
+ "version": "13.10.0",
+ "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz",
+ "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/openapi-types": "^24.2.0"
+ }
+ },
+ "node_modules/@octokit/request": {
+ "version": "8.4.1",
+ "resolved": "https://registry.npmjs.org/@octokit/request/-/request-8.4.1.tgz",
+ "integrity": "sha512-qnB2+SY3hkCmBxZsR/MPCybNmbJe4KAlfWErXq+rBKkQJlbjdJeS85VI9r8UqeLYLvnAenU8Q1okM/0MBsAGXw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/endpoint": "^9.0.6",
+ "@octokit/request-error": "^5.1.1",
+ "@octokit/types": "^13.1.0",
+ "universal-user-agent": "^6.0.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/@octokit/request-error": {
+ "version": "5.1.1",
+ "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-5.1.1.tgz",
+ "integrity": "sha512-v9iyEQJH6ZntoENr9/yXxjuezh4My67CBSu9r6Ve/05Iu5gNgnisNWOsoJHTP6k0Rr0+HQIpnH+kyammu90q/g==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/types": "^13.1.0",
+ "deprecation": "^2.0.0",
+ "once": "^1.4.0"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/@octokit/request-error/node_modules/@octokit/openapi-types": {
+ "version": "24.2.0",
+ "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz",
+ "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@octokit/request-error/node_modules/@octokit/types": {
+ "version": "13.10.0",
+ "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz",
+ "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/openapi-types": "^24.2.0"
+ }
+ },
+ "node_modules/@octokit/request/node_modules/@octokit/openapi-types": {
+ "version": "24.2.0",
+ "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-24.2.0.tgz",
+ "integrity": "sha512-9sIH3nSUttelJSXUrmGzl7QUBFul0/mB8HRYl3fOlgHbIWG+WnYDXU3v/2zMtAvuzZ/ed00Ei6on975FhBfzrg==",
+ "dev": true,
+ "license": "MIT"
+ },
+ "node_modules/@octokit/request/node_modules/@octokit/types": {
+ "version": "13.10.0",
+ "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.10.0.tgz",
+ "integrity": "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/openapi-types": "^24.2.0"
+ }
+ },
+ "node_modules/@octokit/rest": {
+ "version": "20.1.2",
+ "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-20.1.2.tgz",
+ "integrity": "sha512-GmYiltypkHHtihFwPRxlaorG5R9VAHuk/vbszVoRTGXnAsY60wYLkh/E2XiFmdZmqrisw+9FaazS1i5SbdWYgA==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/core": "^5.0.2",
+ "@octokit/plugin-paginate-rest": "11.4.4-cjs.2",
+ "@octokit/plugin-request-log": "^4.0.0",
+ "@octokit/plugin-rest-endpoint-methods": "13.3.2-cjs.1"
+ },
+ "engines": {
+ "node": ">= 18"
+ }
+ },
+ "node_modules/@octokit/types": {
+ "version": "6.41.0",
+ "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz",
+ "integrity": "sha512-eJ2jbzjdijiL3B4PrSQaSjuF2sPEQPVCPzBvTHJD9Nz+9dw2SGH4K4xeQJ77YfTq5bRQ+bD8wT11JbeDPmxmGg==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "@octokit/openapi-types": "^12.11.0"
+ }
+ },
"node_modules/@rollup/rollup-android-arm-eabi": {
"version": "4.62.2",
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.62.2.tgz",
@@ -3656,17 +3966,6 @@
"dev": true,
"license": "MIT"
},
- "node_modules/@types/fs-extra": {
- "version": "9.0.13",
- "resolved": "https://registry.npmjs.org/@types/fs-extra/-/fs-extra-9.0.13.tgz",
- "integrity": "sha512-nEnwB++1u5lVDM2UI4c1+5R+FYaKfaAzS4OococimjVm3nQw3TuzH5UNsocrcTBbhnerblyHj4A49qXbIiZdpA==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "@types/node": "*"
- }
- },
"node_modules/@types/har-format": {
"version": "1.2.16",
"resolved": "https://registry.npmjs.org/@types/har-format/-/har-format-1.2.16.tgz",
@@ -4592,6 +4891,13 @@
"node": ">=6.0.0"
}
},
+ "node_modules/before-after-hook": {
+ "version": "2.2.3",
+ "resolved": "https://registry.npmjs.org/before-after-hook/-/before-after-hook-2.2.3.tgz",
+ "integrity": "sha512-NzUnlZexiaH/46WDhANlyR2bXRopNg4F/zuSA3OpZnllCUgRaOF2znDioDWrmbNVsuZk6l9pMquQB38cfBZwkQ==",
+ "dev": true,
+ "license": "Apache-2.0"
+ },
"node_modules/bitecs": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/bitecs/-/bitecs-0.4.0.tgz",
@@ -4632,6 +4938,13 @@
"license": "MIT",
"optional": true
},
+ "node_modules/bottleneck": {
+ "version": "2.19.5",
+ "resolved": "https://registry.npmjs.org/bottleneck/-/bottleneck-2.19.5.tgz",
+ "integrity": "sha512-VHiNCbI1lKdl44tGrhNfU3lup0Tj/ZBMJB5/2ZbNXRCPuRCO7ed2mgcK4r17y+KB2EfuYuRaVlwNbAeaWGSpbw==",
+ "dev": true,
+ "license": "MIT"
+ },
"node_modules/bplist-creator": {
"version": "0.0.8",
"resolved": "https://registry.npmjs.org/bplist-creator/-/bplist-creator-0.0.8.tgz",
@@ -5454,6 +5767,13 @@
"url": "https://github.com/sponsors/ljharb"
}
},
+ "node_modules/deprecation": {
+ "version": "2.3.1",
+ "resolved": "https://registry.npmjs.org/deprecation/-/deprecation-2.3.1.tgz",
+ "integrity": "sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==",
+ "dev": true,
+ "license": "ISC"
+ },
"node_modules/detect-libc": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",
@@ -5588,335 +5908,38 @@
"node": ">= 12.20.55"
}
},
- "node_modules/electron-installer-common": {
- "version": "0.10.4",
- "resolved": "https://registry.npmjs.org/electron-installer-common/-/electron-installer-common-0.10.4.tgz",
- "integrity": "sha512-8gMNPXfAqUE5CfXg8RL0vXpLE9HAaPkgLXVoHE3BMUzogMWenf4LmwQ27BdCUrEhkjrKl+igs2IHJibclR3z3Q==",
+ "node_modules/electron-installer-dmg": {
+ "version": "5.0.1",
+ "resolved": "https://registry.npmjs.org/electron-installer-dmg/-/electron-installer-dmg-5.0.1.tgz",
+ "integrity": "sha512-qOa1aAQdX57C+vzhDk3549dd/PRlNL4F8y736MTD1a43qptD+PvHY97Bo9gSf+OZ8iUWE7BrYSpk/FgLUe40EA==",
"dev": true,
"license": "Apache-2.0",
"optional": true,
"dependencies": {
- "@electron/asar": "^3.2.5",
- "@malept/cross-spawn-promise": "^1.0.0",
- "debug": "^4.1.1",
- "fs-extra": "^9.0.0",
- "glob": "^7.1.4",
- "lodash": "^4.17.15",
- "parse-author": "^2.0.0",
- "semver": "^7.1.1",
- "tmp-promise": "^3.0.2"
+ "@types/appdmg": "^0.5.5",
+ "debug": "^4.3.2",
+ "minimist": "^1.2.7"
},
- "engines": {
- "node": ">= 10.0.0"
+ "bin": {
+ "electron-installer-dmg": "dist/electron-installer-dmg-bin.js"
},
- "funding": {
- "url": "https://github.com/electron-userland/electron-installer-common?sponsor=1"
+ "engines": {
+ "node": ">= 16"
},
"optionalDependencies": {
- "@types/fs-extra": "^9.0.1"
+ "appdmg": "^0.6.4"
}
},
- "node_modules/electron-installer-common/node_modules/@malept/cross-spawn-promise": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-1.1.1.tgz",
- "integrity": "sha512-RTBGWL5FWQcg9orDOCcp4LvItNzUPcyEU9bwaeJX0rJ1IQxzucC48Y0/sQLp/g6t99IQgAlGIaesJS+gTn7tVQ==",
- "dev": true,
- "funding": [
- {
- "type": "individual",
- "url": "https://github.com/sponsors/malept"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/subscription/pkg/npm-.malept-cross-spawn-promise?utm_medium=referral&utm_source=npm_fund"
- }
- ],
- "license": "Apache-2.0",
- "optional": true,
- "dependencies": {
- "cross-spawn": "^7.0.1"
- },
- "engines": {
- "node": ">= 10"
- }
- },
- "node_modules/electron-installer-common/node_modules/fs-extra": {
- "version": "9.1.0",
- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",
- "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "at-least-node": "^1.0.0",
- "graceful-fs": "^4.2.0",
- "jsonfile": "^6.0.1",
- "universalify": "^2.0.0"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/electron-installer-debian": {
- "version": "3.2.0",
- "resolved": "https://registry.npmjs.org/electron-installer-debian/-/electron-installer-debian-3.2.0.tgz",
- "integrity": "sha512-58ZrlJ1HQY80VucsEIG9tQ//HrTlG6sfofA3nRGr6TmkX661uJyu4cMPPh6kXW+aHdq/7+q25KyQhDrXvRL7jw==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "os": [
- "darwin",
- "linux"
- ],
- "dependencies": {
- "@malept/cross-spawn-promise": "^1.0.0",
- "debug": "^4.1.1",
- "electron-installer-common": "^0.10.2",
- "fs-extra": "^9.0.0",
- "get-folder-size": "^2.0.1",
- "lodash": "^4.17.4",
- "word-wrap": "^1.2.3",
- "yargs": "^16.0.2"
- },
- "bin": {
- "electron-installer-debian": "src/cli.js"
- },
- "engines": {
- "node": ">= 10.0.0"
- }
- },
- "node_modules/electron-installer-debian/node_modules/@malept/cross-spawn-promise": {
- "version": "1.1.1",
- "resolved": "https://registry.npmjs.org/@malept/cross-spawn-promise/-/cross-spawn-promise-1.1.1.tgz",
- "integrity": "sha512-RTBGWL5FWQcg9orDOCcp4LvItNzUPcyEU9bwaeJX0rJ1IQxzucC48Y0/sQLp/g6t99IQgAlGIaesJS+gTn7tVQ==",
- "dev": true,
- "funding": [
- {
- "type": "individual",
- "url": "https://github.com/sponsors/malept"
- },
- {
- "type": "tidelift",
- "url": "https://tidelift.com/subscription/pkg/npm-.malept-cross-spawn-promise?utm_medium=referral&utm_source=npm_fund"
- }
- ],
- "license": "Apache-2.0",
- "optional": true,
- "dependencies": {
- "cross-spawn": "^7.0.1"
- },
- "engines": {
- "node": ">= 10"
- }
- },
- "node_modules/electron-installer-debian/node_modules/cliui": {
- "version": "7.0.4",
- "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz",
- "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==",
- "dev": true,
- "license": "ISC",
- "optional": true,
- "dependencies": {
- "string-width": "^4.2.0",
- "strip-ansi": "^6.0.0",
- "wrap-ansi": "^7.0.0"
- }
- },
- "node_modules/electron-installer-debian/node_modules/emoji-regex": {
- "version": "8.0.0",
- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",
- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",
- "dev": true,
- "license": "MIT",
- "optional": true
- },
- "node_modules/electron-installer-debian/node_modules/fs-extra": {
- "version": "9.1.0",
- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-9.1.0.tgz",
- "integrity": "sha512-hcg3ZmepS30/7BSFqRvoo3DOMQu7IjqxO5nCDt+zM9XWjb33Wg7ziNT+Qvqbuc3+gWpzO02JubVyk2G4Zvo1OQ==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "at-least-node": "^1.0.0",
- "graceful-fs": "^4.2.0",
- "jsonfile": "^6.0.1",
- "universalify": "^2.0.0"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/electron-installer-debian/node_modules/is-fullwidth-code-point": {
- "version": "3.0.0",
- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",
- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/electron-installer-debian/node_modules/string-width": {
- "version": "4.2.3",
- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",
- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "emoji-regex": "^8.0.0",
- "is-fullwidth-code-point": "^3.0.0",
- "strip-ansi": "^6.0.1"
- },
- "engines": {
- "node": ">=8"
- }
- },
- "node_modules/electron-installer-debian/node_modules/wrap-ansi": {
- "version": "7.0.0",
- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",
- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "ansi-styles": "^4.0.0",
- "string-width": "^4.1.0",
- "strip-ansi": "^6.0.0"
- },
- "engines": {
- "node": ">=10"
- },
- "funding": {
- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"
- }
- },
- "node_modules/electron-installer-debian/node_modules/yargs": {
- "version": "16.2.2",
- "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.2.tgz",
- "integrity": "sha512-Nt9ZJjXTv5R8MHbqby/wXQ6Gi0Bb3TcYZkR1bzuL4yB2OxWPkXknz513gEF0GoA6tn00UpbPvERW8rzCuWCA6w==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "cliui": "^7.0.2",
- "escalade": "^3.1.1",
- "get-caller-file": "^2.0.5",
- "require-directory": "^2.1.1",
- "string-width": "^4.2.0",
- "y18n": "^5.0.5",
- "yargs-parser": "^20.2.2"
- },
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/electron-installer-debian/node_modules/yargs-parser": {
- "version": "20.2.9",
- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.9.tgz",
- "integrity": "sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w==",
- "dev": true,
- "license": "ISC",
- "optional": true,
- "engines": {
- "node": ">=10"
- }
- },
- "node_modules/electron-installer-dmg": {
- "version": "5.0.1",
- "resolved": "https://registry.npmjs.org/electron-installer-dmg/-/electron-installer-dmg-5.0.1.tgz",
- "integrity": "sha512-qOa1aAQdX57C+vzhDk3549dd/PRlNL4F8y736MTD1a43qptD+PvHY97Bo9gSf+OZ8iUWE7BrYSpk/FgLUe40EA==",
- "dev": true,
- "license": "Apache-2.0",
- "optional": true,
- "dependencies": {
- "@types/appdmg": "^0.5.5",
- "debug": "^4.3.2",
- "minimist": "^1.2.7"
- },
- "bin": {
- "electron-installer-dmg": "dist/electron-installer-dmg-bin.js"
- },
- "engines": {
- "node": ">= 16"
- },
- "optionalDependencies": {
- "appdmg": "^0.6.4"
- }
- },
- "node_modules/electron-to-chromium": {
- "version": "1.5.387",
- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.387.tgz",
- "integrity": "sha512-TaxwufTFDufvPEoXdhwVrA3UdFWBeWGkYoJ1K8ldF1xe6gKfth6iRNS5lTQ5JPNOHdGQm8PT1QYKUqFLCiUefQ==",
- "license": "ISC"
- },
- "node_modules/electron-winstaller": {
- "version": "5.4.4",
- "resolved": "https://registry.npmjs.org/electron-winstaller/-/electron-winstaller-5.4.4.tgz",
- "integrity": "sha512-j9ETcBGJaXxAY/b6UBpR7LZfjdU4BAO+yvr4ifqHEdyuc3UNCy91PDGkWKY5UQ4coHNYfnwFggrqD6QPeFGAlg==",
- "dev": true,
- "hasInstallScript": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "@electron/asar": "^3.2.1",
- "debug": "^4.1.1",
- "fs-extra": "^7.0.1",
- "lodash": "^4.17.21",
- "semver": "^7.6.3",
- "temp": "^0.9.0"
- },
- "engines": {
- "node": ">=8.0.0"
- },
- "optionalDependencies": {
- "@electron/windows-sign": "^1.1.2"
- }
- },
- "node_modules/electron-winstaller/node_modules/fs-extra": {
- "version": "7.0.1",
- "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-7.0.1.tgz",
- "integrity": "sha512-YJDaCJZEnBmcbw13fvdAM9AwNOJwOzrE4pqMqBq5nFiEqXUqHwlK4B+3pUw6JNvfSPtX05xFHtYy/1ni01eGCw==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "graceful-fs": "^4.1.2",
- "jsonfile": "^4.0.0",
- "universalify": "^0.1.0"
- },
- "engines": {
- "node": ">=6 <7 || >=8"
- }
- },
- "node_modules/electron-winstaller/node_modules/jsonfile": {
- "version": "4.0.0",
- "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz",
- "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "optionalDependencies": {
- "graceful-fs": "^4.1.6"
- }
- },
- "node_modules/electron-winstaller/node_modules/universalify": {
- "version": "0.1.2",
- "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz",
- "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "engines": {
- "node": ">= 4.0.0"
- }
- },
- "node_modules/electron/node_modules/@electron/get": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/@electron/get/-/get-2.0.3.tgz",
- "integrity": "sha512-Qkzpg2s9GnVV2I2BjRksUi43U5e6+zaQMcjoJy0C+C5oxaKl+fmckGDQFtRpZpZV0NQekuZZ+tGz7EA9TVnQtQ==",
+ "node_modules/electron-to-chromium": {
+ "version": "1.5.387",
+ "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.387.tgz",
+ "integrity": "sha512-TaxwufTFDufvPEoXdhwVrA3UdFWBeWGkYoJ1K8ldF1xe6gKfth6iRNS5lTQ5JPNOHdGQm8PT1QYKUqFLCiUefQ==",
+ "license": "ISC"
+ },
+ "node_modules/electron/node_modules/@electron/get": {
+ "version": "2.0.3",
+ "resolved": "https://registry.npmjs.org/@electron/get/-/get-2.0.3.tgz",
+ "integrity": "sha512-Qkzpg2s9GnVV2I2BjRksUi43U5e6+zaQMcjoJy0C+C5oxaKl+fmckGDQFtRpZpZV0NQekuZZ+tGz7EA9TVnQtQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -6903,15 +6926,6 @@
"node": ">= 12"
}
},
- "node_modules/gar": {
- "version": "1.0.4",
- "resolved": "https://registry.npmjs.org/gar/-/gar-1.0.4.tgz",
- "integrity": "sha512-w4n9cPWyP7aHxKxYHFQMegj7WIAsL/YX/C4Bs5Rr8s1H9M1rNtRWRsw+ovYMkXDQ5S4ZbYHsHAPmevPjPgw44w==",
- "deprecated": "Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.",
- "dev": true,
- "license": "MIT",
- "optional": true
- },
"node_modules/generate-function": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/generate-function/-/generate-function-2.3.1.tgz",
@@ -6953,21 +6967,6 @@
"node": "6.* || 8.* || >= 10.*"
}
},
- "node_modules/get-folder-size": {
- "version": "2.0.1",
- "resolved": "https://registry.npmjs.org/get-folder-size/-/get-folder-size-2.0.1.tgz",
- "integrity": "sha512-+CEb+GDCM7tkOS2wdMKTn9vU7DgnKUTuDlehkNJKNSovdCOVxs14OfKCk4cvSaR3za4gj+OBdl9opPN9xrJ0zA==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "gar": "^1.0.4",
- "tiny-each-async": "2.0.3"
- },
- "bin": {
- "get-folder-size": "bin/get-folder-size"
- }
- },
"node_modules/get-package-info": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/get-package-info/-/get-package-info-1.0.0.tgz",
@@ -7014,6 +7013,15 @@
"node": ">=6"
}
},
+ "node_modules/github-url-to-object": {
+ "version": "4.0.6",
+ "resolved": "https://registry.npmjs.org/github-url-to-object/-/github-url-to-object-4.0.6.tgz",
+ "integrity": "sha512-NaqbYHMUAlPcmWFdrAB7bcxrNIiiJWJe8s/2+iOc9vlcHlwHqSGrPk+Yi3nu6ebTwgsZEa7igz+NH2vEq3gYwQ==",
+ "license": "MIT",
+ "dependencies": {
+ "is-url": "^1.1.0"
+ }
+ },
"node_modules/glob": {
"version": "7.2.3",
"resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",
@@ -7621,6 +7629,12 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
+ "node_modules/is-url": {
+ "version": "1.2.4",
+ "resolved": "https://registry.npmjs.org/is-url/-/is-url-1.2.4.tgz",
+ "integrity": "sha512-ITvGim8FhRiYe4IQ5uHSkj7pVaPDrCTkNd3yq3cV7iZAcJdHTUMPMEHcqSOy9xZ9qFenQCvi+2wjH9a1nXqHww==",
+ "license": "MIT"
+ },
"node_modules/is-what": {
"version": "4.1.16",
"resolved": "https://registry.npmjs.org/is-what/-/is-what-4.1.16.tgz",
@@ -8221,14 +8235,6 @@
"url": "https://github.com/sponsors/sindresorhus"
}
},
- "node_modules/lodash": {
- "version": "4.18.1",
- "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz",
- "integrity": "sha512-dMInicTPVE8d1e5otfwmmjlxkZoUpiVLwyeTdUsi/Caj/gfzzblBcCE5sRHV/AsjuCmxWrte2TNGSYuCeCq+0Q==",
- "dev": true,
- "license": "MIT",
- "optional": true
- },
"node_modules/lodash.get": {
"version": "4.4.2",
"resolved": "https://registry.npmjs.org/lodash.get/-/lodash.get-4.4.2.tgz",
@@ -8565,6 +8571,29 @@
"node": ">= 0.6"
}
},
+ "node_modules/mime-types": {
+ "version": "2.1.35",
+ "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz",
+ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==",
+ "dev": true,
+ "license": "MIT",
+ "dependencies": {
+ "mime-db": "1.52.0"
+ },
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
+ "node_modules/mime-types/node_modules/mime-db": {
+ "version": "1.52.0",
+ "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz",
+ "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==",
+ "dev": true,
+ "license": "MIT",
+ "engines": {
+ "node": ">= 0.6"
+ }
+ },
"node_modules/mimic-fn": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
@@ -10702,50 +10731,6 @@
"node": ">=8"
}
},
- "node_modules/temp": {
- "version": "0.9.4",
- "resolved": "https://registry.npmjs.org/temp/-/temp-0.9.4.tgz",
- "integrity": "sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "mkdirp": "^0.5.1",
- "rimraf": "~2.6.2"
- },
- "engines": {
- "node": ">=6.0.0"
- }
- },
- "node_modules/temp/node_modules/mkdirp": {
- "version": "0.5.6",
- "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz",
- "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "minimist": "^1.2.6"
- },
- "bin": {
- "mkdirp": "bin/cmd.js"
- }
- },
- "node_modules/temp/node_modules/rimraf": {
- "version": "2.6.3",
- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz",
- "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==",
- "deprecated": "Rimraf versions prior to v4 are no longer supported",
- "dev": true,
- "license": "ISC",
- "optional": true,
- "dependencies": {
- "glob": "^7.1.3"
- },
- "bin": {
- "rimraf": "bin.js"
- }
- },
"node_modules/terser": {
"version": "5.48.0",
"resolved": "https://registry.npmjs.org/terser/-/terser-5.48.0.tgz",
@@ -10772,14 +10757,6 @@
"devOptional": true,
"license": "MIT"
},
- "node_modules/tiny-each-async": {
- "version": "2.0.3",
- "resolved": "https://registry.npmjs.org/tiny-each-async/-/tiny-each-async-2.0.3.tgz",
- "integrity": "sha512-5ROII7nElnAirvFn8g7H7MtpfV1daMcyfTGQwsn/x2VtyV+VPiO5CjReCJtWLvoKTDEDmZocf3cNPraiMnBXLA==",
- "dev": true,
- "license": "MIT",
- "optional": true
- },
"node_modules/tinyglobby": {
"version": "0.2.17",
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz",
@@ -10838,28 +10815,6 @@
"node": ">=0.6.0"
}
},
- "node_modules/tmp-promise": {
- "version": "3.0.3",
- "resolved": "https://registry.npmjs.org/tmp-promise/-/tmp-promise-3.0.3.tgz",
- "integrity": "sha512-RwM7MoPojPxsOBYnyd2hy0bxtIlVrihNs9pj5SUvY8Zz1sQcQG2tG1hSr8PDxfgEB8RNKDhqbIlroIarSNDNsQ==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "dependencies": {
- "tmp": "^0.2.0"
- }
- },
- "node_modules/tmp-promise/node_modules/tmp": {
- "version": "0.2.7",
- "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.7.tgz",
- "integrity": "sha512-e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw==",
- "dev": true,
- "license": "MIT",
- "optional": true,
- "engines": {
- "node": ">=14.14"
- }
- },
"node_modules/tn1150": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/tn1150/-/tn1150-0.1.0.tgz",
@@ -11025,6 +10980,13 @@
"node": "^12.13.0 || ^14.15.0 || >=16.0.0"
}
},
+ "node_modules/universal-user-agent": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-6.0.1.tgz",
+ "integrity": "sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==",
+ "dev": true,
+ "license": "ISC"
+ },
"node_modules/universalify": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/universalify/-/universalify-2.0.1.tgz",
@@ -11076,6 +11038,16 @@
"browserslist": ">= 4.21.0"
}
},
+ "node_modules/update-electron-app": {
+ "version": "3.3.0",
+ "resolved": "https://registry.npmjs.org/update-electron-app/-/update-electron-app-3.3.0.tgz",
+ "integrity": "sha512-5s73OcyNhAvogjxzAy8pbephY+bP6aXpXFv68OT1dNiEbcUpIUCv/ZZPalqGclnXUgx3oyn+yVdAIIVUpn/C1g==",
+ "license": "MIT",
+ "dependencies": {
+ "github-url-to-object": "^4.0.4",
+ "ms": "^2.1.1"
+ }
+ },
"node_modules/uri-js": {
"version": "4.4.1",
"resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",
diff --git a/package.json b/package.json
index 0ee734d6..df95d903 100644
--- a/package.json
+++ b/package.json
@@ -12,6 +12,7 @@
"build:web": "npm run build --workspace=@diffusionstudio/web",
"build:desktop": "npm run build --workspace=@diffusionstudio/desktop",
"make": "npm run make --workspace=@diffusionstudio/desktop",
+ "release": "node scripts/release.mjs",
"lint": "npm run lint --workspaces --if-present",
"check": "npm run check --workspaces --if-present"
}
diff --git a/scripts/release.mjs b/scripts/release.mjs
new file mode 100644
index 00000000..f4e473d2
--- /dev/null
+++ b/scripts/release.mjs
@@ -0,0 +1,75 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+// Cuts a release: bumps the single global version in the root and all app
+// package.jsons, refreshes the lockfile, commits, and tags. Pushing the tag
+// is what triggers the Release workflow, so that stays a manual step.
+// Usage: npm run release <patch|minor|major|x.y.z>
+
+import { execFileSync } from "node:child_process";
+import { readFileSync, writeFileSync } from "node:fs";
+import { dirname, join } from "node:path";
+import { fileURLToPath } from "node:url";
+
+const root = join(dirname(fileURLToPath(import.meta.url)), "..");
+const PKGS = [
+ "package.json",
+ "apps/desktop/package.json",
+ "apps/cli/package.json",
+ "apps/web/package.json",
+];
+
+const git = (...args) => execFileSync("git", args, { cwd: root, encoding: "utf8" }).trim();
+
+const arg = process.argv[2];
+if (!arg) {
+ console.error("Usage: npm run release <patch|minor|major|x.y.z>");
+ process.exit(1);
+}
+
+if (git("status", "--porcelain")) {
+ console.error("Working tree is not clean; commit or stash first.");
+ process.exit(1);
+}
+
+const current = JSON.parse(readFileSync(join(root, "package.json"), "utf8")).version;
+
+let next;
+if (/^\d+\.\d+\.\d+$/.test(arg)) {
+ next = arg;
+} else {
+ const [major, minor, patch] = current.split(".").map(Number);
+ if (arg === "major") next = `${major + 1}.0.0`;
+ else if (arg === "minor") next = `${major}.${minor + 1}.0`;
+ else if (arg === "patch") next = `${major}.${minor}.${patch + 1}`;
+ else {
+ console.error(`Unknown bump "${arg}" (expected patch, minor, major, or x.y.z)`);
+ process.exit(1);
+ }
+}
+
+const tag = `v${next}`;
+if (git("tag", "--list", tag)) {
+ console.error(`Tag ${tag} already exists.`);
+ process.exit(1);
+}
+
+for (const rel of PKGS) {
+ const path = join(root, rel);
+ const pkg = JSON.parse(readFileSync(path, "utf8"));
+ pkg.version = next;
+ writeFileSync(path, JSON.stringify(pkg, null, 2) + "\n");
+}
+
+execFileSync("npm", ["install", "--package-lock-only", "--no-audit", "--no-fund"], {
+ cwd: root,
+ stdio: "inherit",
+});
+
+git("add", ...PKGS, "package-lock.json");
+git("commit", "-m", tag);
+git("tag", tag);
+
+console.log(`\n${current} -> ${next}`);
+console.log(`Release with: git push origin HEAD ${tag}`);