Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion npm/deepseek-tui/scripts/artifacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const ASSET_MATRIX = {
arm64: ["deepseek-macos-arm64", "deepseek-tui-macos-arm64"],
},
win32: {
x64: ["deepseek-windows-x64.exe", "deepseek-tui-windows-x64.exe"],
x64: ["deepseek-windows-x64.exe", "deepseek-tui-windows-x64.exe", "deepseek-tui.bat"],
},
};

Expand Down
21 changes: 21 additions & 0 deletions scripts/release/prepare-local-release-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,27 @@ async function main() {
manifestLines.push(`${await sha256(outputPath)} ${asset.target}`);
}


// Windows: generate .bat launcher that prefers Windows Terminal
if (isWindows) {
const batContent = [
"@echo off",
"set NO_ANIMATIONS=1",
"where wt >nul 2>nul",
"if %ERRORLEVEL% EQU 0 (",
" wt --title DeepSeek-TUI cmd /k ""%~dp0deepseek-tui-windows-x64.exe"",
") else (",
" "%~dp0deepseek-tui-windows-x64.exe"",
")",
"",
].join("\r\n");
const batPath = path.join(outputDir, "deepseek-tui.bat");
await fs.writeFile(batPath, batContent, "utf8");
const batHash = await sha256(batPath);
manifestLines.push(`${batHash} deepseek-tui.bat`);
console.log(`Generated ${batPath}`);
}

manifestLines.sort();
const manifestPath = path.join(outputDir, CHECKSUM_MANIFEST);
await fs.writeFile(manifestPath, `${manifestLines.join("\n")}\n`, "utf8");
Expand Down