Skip to content
Merged
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 .github/workflows/build-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:

strategy:
matrix:
platform: [macos-latest, macos-13, windows-latest]
platform: [macos-latest, windows-latest]

defaults:
run:
Expand Down
5 changes: 4 additions & 1 deletion packages/app/forge.config.cts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ const config: ForgeConfig = {
},
rebuildConfig: {},
makers: [
new MakerSquirrel({}),
new MakerSquirrel({
setupIcon: './icons/icon.ico',
iconUrl: 'https://gettoolbase.ai/logo.ico',
}),
new MakerZIP({}, ['darwin']),
//@ts-expect-error MakerDMS has incorrect types.
new MakerDMG({
Expand Down
4 changes: 2 additions & 2 deletions packages/app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 14 additions & 9 deletions packages/app/src/main/ipc-listeners.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ async function refreshClaude() {

try {
if (platform === 'win32') {
await execAsync('taskkill /F /IM "Claude.exe" && start "" "Claude.exe"');
await execAsync('taskkill /F /IM "Claude.exe"');
} else if (platform === 'darwin') {
await execAsync('killall "Claude" && open -a "Claude"');
await execAsync('killall "Claude"');
} else if (platform === 'linux') {
await execAsync('pkill -f "claude" && claude');
await execAsync('pkill -f "claude"');
}
} catch (error) {
console.error('Failed to close Claude, assuming it is not running', error);
Expand All @@ -46,13 +46,18 @@ async function refreshClaude() {
await new Promise((resolve) => setTimeout(resolve, 2000));

// Reopen the app
if (platform === 'win32') {
await execAsync('start "" "Claude.exe"');
} else if (platform === 'darwin') {
await execAsync('open -a "Claude"');
} else if (platform === 'linux') {
await execAsync('claude');
try {
if (platform === 'win32') {
await execAsync('start "" "%LocalAppData%\\AnthropicClaude\\Claude.exe"');
} else if (platform === 'darwin') {
await execAsync('open -a "Claude"');
} else if (platform === 'linux') {
await execAsync('claude');
}
} catch (error) {
console.error('Failed to open Claude', error);
}

}

/**
Expand Down
6 changes: 4 additions & 2 deletions packages/app/src/main/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,16 @@ const createWindow = () => {
const mainWindow = new BrowserWindow({
width: 1280,
height: 720,
minWidth: 320,
minWidth: 360,
minHeight: 400,
webPreferences: {
preload: join(import.meta.dirname, 'preload.js'),
devTools: !app.isPackaged,
},
show: false,
autoHideMenuBar: true,
});

mainWindow.once('ready-to-show', () => {
mainWindow.show();
});
Expand Down
2 changes: 1 addition & 1 deletion packages/runner/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if (!moduleName) {
process.argv = ["", "", ...args["--"]];

// Load and bundle up the module.
const loadCache = createCache({ root: args.cacheRoot });
const loadCache = createCache({ root: args.cacheRoot, readOnly: Deno.build.os === "windows" });
const result = await bundle(moduleName, {
load(specifier, _isDynamic, cacheSetting, checksum) {
// If the specifier is a node module, just return it as external.
Expand Down