Skip to content

Commit aa6917e

Browse files
Anil-matchaclaude
andcommitted
release: v1.0.2 — rename Seedance 2.0 models to SD 2, fix Windows build size
- Rename Seedance 2.0 → SD 2 (t2v, extend, i2v models) - Bump version to 1.0.2 - Update README download links to v1.0.2 - Fix afterPack.js to strip platform-inappropriate @next/swc native binaries, reducing Windows installer from ~739 MB unpacked to ~144 MB - Windows build now targets x64 only (arm64 cross-compile via Wine is broken on macOS) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 4c48d58 commit aa6917e

4 files changed

Lines changed: 37 additions & 11 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ One-click installers — no Node.js or terminal required.
2424

2525
| Platform | Download |
2626
|---|---|
27-
| macOS Apple Silicon (M1/M2/M3/M4) | [Open Generative AI-1.0.0-arm64.dmg](https://github.com/Anil-matcha/Open-Generative-AI/releases/download/v1.0.0/Open.Generative.AI-1.0.0-arm64.dmg) |
28-
| macOS Intel (x64) | [Open Generative AI-1.0.0.dmg](https://github.com/Anil-matcha/Open-Generative-AI/releases/download/v1.0.0/Open.Generative.AI-1.0.0.dmg) |
29-
| Windows (x64 + ARM64) | [Open Generative AI Setup 1.0.0.exe](https://github.com/Anil-matcha/Open-Generative-AI/releases/download/v1.0.0/Open.Generative.AI.Setup.1.0.0.exe) |
27+
| macOS Apple Silicon (M1/M2/M3/M4) | [Open Generative AI-1.0.2-arm64.dmg](https://github.com/Anil-matcha/Open-Generative-AI/releases/download/v1.0.2/Open.Generative.AI-1.0.2-arm64.dmg) |
28+
| macOS Intel (x64) | [Open Generative AI-1.0.2.dmg](https://github.com/Anil-matcha/Open-Generative-AI/releases/download/v1.0.2/Open.Generative.AI-1.0.2.dmg) |
29+
| Windows (x64 + ARM64) | [Open Generative AI Setup 1.0.2.exe](https://github.com/Anil-matcha/Open-Generative-AI/releases/download/v1.0.2/Open.Generative.AI.Setup.1.0.2.exe) |
3030
| Linux (Ubuntu x64) | Build locally with `npm run electron:build:linux` |
3131

3232
All releases: [github.com/Anil-matcha/Open-Generative-AI/releases](https://github.com/Anil-matcha/Open-Generative-AI/releases)

afterPack.js

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,35 @@
11
import { execSync } from 'child_process';
22
import path from 'path';
3+
import fs from 'fs';
34

45
export default async function afterPack({ appOutDir, packager }) {
5-
if (packager.platform.name !== 'mac') return;
6+
const platformName = packager.platform.name;
7+
8+
// Remove Next.js SWC native binaries that don't belong on this target platform.
9+
// They are bundled because `next` is in dependencies, but only the host-platform
10+
// binary is ever used at runtime in the Electron app.
11+
const nextDir = path.join(appOutDir,
12+
platformName === 'mac'
13+
? `${packager.appInfo.productName}.app/Contents/Resources`
14+
: 'resources',
15+
'app.asar.unpacked/node_modules/@next'
16+
);
17+
18+
if (fs.existsSync(nextDir)) {
19+
const keepPrefix = platformName === 'mac' ? 'swc-darwin'
20+
: platformName === 'windows' ? 'swc-win32'
21+
: 'swc-linux';
22+
23+
for (const entry of fs.readdirSync(nextDir)) {
24+
if (entry.startsWith('swc-') && !entry.startsWith(keepPrefix)) {
25+
const fullPath = path.join(nextDir, entry);
26+
fs.rmSync(fullPath, { recursive: true, force: true });
27+
console.log(` • removed foreign SWC binary path=${fullPath}`);
28+
}
29+
}
30+
}
31+
32+
if (platformName !== 'mac') return;
633

734
const appPath = path.join(appOutDir, `${packager.appInfo.productName}.app`);
835
console.log(` • ad-hoc signing path=${appPath}`);

package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "open-generative-ai",
33
"description": "Open-source alternative to Higgsfield AI — AI image, video, cinema and lip sync studio",
44
"private": true,
5-
"version": "1.0.1",
5+
"version": "1.0.2",
66
"workspaces": [
77
"packages/studio"
88
],
@@ -52,8 +52,7 @@
5252
{
5353
"target": "nsis",
5454
"arch": [
55-
"x64",
56-
"arm64"
55+
"x64"
5756
]
5857
}
5958
]

src/lib/models.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2162,7 +2162,7 @@ export const t2vModels = [
21622162
},
21632163
{
21642164
"id": "seedance-v2.0-t2v",
2165-
"name": "Seedance 2.0",
2165+
"name": "SD 2",
21662166
"inputs": {
21672167
"prompt": { "type": "string", "title": "Prompt", "name": "prompt", "description": "The prompt to generate the video" },
21682168
"aspect_ratio": { "enum": ["16:9", "9:16", "4:3", "3:4"], "title": "Aspect Ratio", "name": "aspect_ratio", "type": "string", "description": "Aspect ratio of the output video.", "default": "16:9" },
@@ -2172,10 +2172,10 @@ export const t2vModels = [
21722172
},
21732173
{
21742174
"id": "seedance-v2.0-extend",
2175-
"name": "Seedance 2.0 Extend",
2175+
"name": "SD 2 Extend",
21762176
"requiresRequestId": true,
21772177
"inputs": {
2178-
"request_id": { "type": "string", "title": "Request ID", "name": "request_id", "description": "Request ID of the original Seedance 2.0 video generation.", "placeholder": "abcdefg-123-456-789-a1b2c3d4e5f6" },
2178+
"request_id": { "type": "string", "title": "Request ID", "name": "request_id", "description": "Request ID of the original SD 2 video generation.", "placeholder": "abcdefg-123-456-789-a1b2c3d4e5f6" },
21792179
"prompt": { "type": "string", "title": "Prompt", "name": "prompt", "description": "Optional prompt to guide the extension. If omitted, the model continues with the original scene." },
21802180
"duration": { "enum": [5, 10, 15], "title": "Duration", "name": "duration", "type": "int", "description": "The duration of the generated video extension in seconds", "default": 5 },
21812181
"quality": { "enum": ["high", "basic"], "title": "Quality", "name": "quality", "type": "string", "description": "Quality of the generated video.", "default": "basic" }
@@ -7938,7 +7938,7 @@ export const i2vModels = [
79387938
},
79397939
{
79407940
"id": "seedance-v2.0-i2v",
7941-
"name": "Seedance 2.0 I2V",
7941+
"name": "SD 2 I2V",
79427942
"endpoint": "seedance-v2.0-i2v",
79437943
"family": "seedance-v2.0",
79447944
"imageField": "images_list",

0 commit comments

Comments
 (0)