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 package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "desktop-translator",
"private": true,
"version": "0.4.0",
"version": "0.4.1",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

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

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "desktop-translator"
version = "0.4.0"
version = "0.4.1"
description = "Lightweight cross-platform selection translator"
authors = ["Desktop Translator Contributors"]
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "Desktop Translator",
"version": "0.4.0",
"version": "0.4.1",
"identifier": "com.desktoptranslator.desktop",
"build": {
"beforeDevCommand": "pnpm dev",
Expand Down
2 changes: 1 addition & 1 deletion src/styles/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ input:focus-visible,
max-height: min(520px, calc(100vh - 20px));
overflow: auto;
overscroll-behavior: contain;
border: 1px solid var(--line);
border: 1px solid color-mix(in srgb, var(--line) 52%, transparent);
border-radius: var(--radius-lg);
background: var(--surface);
box-shadow: var(--shadow-overlay);
Expand Down
14 changes: 8 additions & 6 deletions tools/release/audit-windows-bundle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@ import { describe, expect, it } from "vitest";
const script = join(dirname(fileURLToPath(import.meta.url)), "audit-windows-bundle.ps1");
const repositoryRoot = join(dirname(fileURLToPath(import.meta.url)), "..", "..");
const describeWindows = process.platform === "win32" ? describe : describe.skip;
const windowsProcessTimeoutMs = 15_000;
const windowsTestTimeoutMs = 20_000;

function runAudit(releaseDir: string) {
return spawnSync(
"powershell.exe",
["-NoProfile", "-ExecutionPolicy", "Bypass", "-File", script, releaseDir],
{ encoding: "utf8" },
{ encoding: "utf8", timeout: windowsProcessTimeoutMs },
);
}

Expand Down Expand Up @@ -55,7 +57,7 @@ describeWindows("Windows bundle audit", () => {
} finally {
rmSync(root, { recursive: true, force: true });
}
});
}, windowsTestTimeoutMs);

it("fails when the native executable is missing", () => {
const root = makeReleaseLayout({ exe: false });
Expand All @@ -66,7 +68,7 @@ describeWindows("Windows bundle audit", () => {
} finally {
rmSync(root, { recursive: true, force: true });
}
});
}, windowsTestTimeoutMs);

it("fails when a developer runtime is packaged", () => {
const root = makeReleaseLayout({ developerRuntime: true });
Expand All @@ -77,7 +79,7 @@ describeWindows("Windows bundle audit", () => {
} finally {
rmSync(root, { recursive: true, force: true });
}
});
}, windowsTestTimeoutMs);

it("fails when the starter textbook is a loose resource file", () => {
const root = makeReleaseLayout({ looseTextbook: true });
Expand All @@ -88,7 +90,7 @@ describeWindows("Windows bundle audit", () => {
} finally {
rmSync(root, { recursive: true, force: true });
}
});
}, windowsTestTimeoutMs);

it("passes a compact x64 NSIS layout without developer runtimes", () => {
const root = makeReleaseLayout({});
Expand All @@ -99,7 +101,7 @@ describeWindows("Windows bundle audit", () => {
} finally {
rmSync(root, { recursive: true, force: true });
}
});
}, windowsTestTimeoutMs);
});

describe("Windows workflow integration", () => {
Expand Down
Loading