Skip to content

A full-featured download manager.

fix(ffmpeg): polish verified installation and settings (#2302)

Dr_rOotc046502aa71b
diff --git a/e2e/media-settings.spec.ts b/e2e/media-settings.spec.ts
index bf8a82f8..389c1491 100644
--- a/e2e/media-settings.spec.ts
+++ b/e2e/media-settings.spec.ts
@@ -21,12 +21,32 @@ test.describe('media settings', () => {
await card.scrollIntoViewIfNeeded()
await card.getByRole('button', { name: 'Download FFmpeg' }).click()
await expect(
- card.getByText(/Apple’s online notarization ticket/)
+ card.getByText(/Checks Developer ID and notarization/)
).toBeVisible()
+ await expect(
+ card.getByRole('link', { name: 'FFmpeg manual' })
+ ).toHaveAttribute('href', 'https://motrix.app/manual/ffmpeg/')
+ await card.screenshot({
+ path: testInfo.outputPath('ffmpeg-install-consent.png'),
+ })
await card.getByRole('button', { name: 'Download and verify' }).click()
+ const installAction = card.getByTestId('ffmpeg-install-action')
+ await expect(installAction).toBeDisabled()
+ await expect(installAction).toHaveAttribute('aria-busy', 'true')
await expect(
- card.getByRole('button', { name: 'Verifying…' })
- ).toBeDisabled()
+ card.locator('[data-slot="ffmpeg-download-fill"]')
+ ).toBeVisible({
+ timeout: 120_000,
+ })
+ const accessibleProgress = card.getByRole('progressbar', {
+ name: 'FFmpeg download progress',
+ })
+ await expect(accessibleProgress).toHaveCSS('position', 'absolute')
+ await expect(accessibleProgress).toHaveCSS('width', '1px')
+ await expect(accessibleProgress).toHaveCSS('height', '1px')
+ await card.screenshot({
+ path: testInfo.outputPath('ffmpeg-download-button.png'),
+ })
const terminalStatus = card.getByRole('status').filter({
hasText: /Verified and installed\.|Download or verification failed/,
})
@@ -41,6 +61,10 @@ test.describe('media settings', () => {
expect(await terminalStatus.textContent()).toContain(
'Verified and installed.'
)
+ await expect(card.getByTestId('ffmpeg-install-action')).toHaveCount(0)
+ await expect(
+ card.getByRole('button', { name: 'Download FFmpeg' })
+ ).toBeVisible()
await expect(
card.getByText(
'Restart Motrix for active plugins to detect the installation.'
@@ -48,7 +72,7 @@ test.describe('media settings', () => {
).toBeVisible()
const receipt = JSON.parse(
await readFile(
- path.join(userDataDir, 'ffmpeg-verified', 'current.json'),
+ path.join(userDataDir, 'binaries', 'ffmpeg-verified', 'current.json'),
'utf8'
)
)
@@ -57,18 +81,66 @@ test.describe('media settings', () => {
exact: true,
})
).toBeVisible({ timeout: 120_000 })
+ const installedDirectory = path.join(
+ userDataDir,
+ 'binaries',
+ 'ffmpeg-verified',
+ 'releases',
+ `${receipt.manifestHash}-darwin-${process.arch}`
+ )
await expect(
- card.getByText(
- new RegExp(`${receipt.manifestHash}-darwin-${process.arch}`)
- )
+ card
+ .getByTestId('ffmpeg-installed-directory')
+ .getByTitle(installedDirectory, { exact: true })
).toBeVisible()
await mainWindow.screenshot({
path: testInfo.outputPath('verified-ffmpeg-install.png'),
})
+ await card.getByRole('button', { name: 'Show detection details' }).click()
+ const managedRow = card.getByTestId('candidate-row-userData')
+ const binaryPath = path.join(installedDirectory, 'ffmpeg')
+ const displayedPath = managedRow.getByTitle(binaryPath, { exact: true })
+ await expect(displayedPath).toBeVisible()
+ await expect(managedRow.getByText('In use', { exact: true })).toBeVisible()
+ await managedRow.screenshot({
+ path: testInfo.outputPath('ffmpeg-resolved-path.png'),
+ })
+ await mainWindow.setViewportSize({ width: 600, height: 740 })
+ await displayedPath.scrollIntoViewIfNeeded()
+ const filenameBounds = await displayedPath.evaluate((element) => {
+ const tail = element.querySelector(
+ '[aria-hidden="true"]:last-child > span'
+ )
+ const textNode = tail?.firstChild
+ if (!textNode) throw new Error('Path suffix was not rendered')
+ const range = document.createRange()
+ range.setStart(
+ textNode,
+ (textNode.textContent?.length ?? 0) - 'ffmpeg'.length
+ )
+ range.setEnd(textNode, textNode.textContent?.length ?? 0)
+ const filename = range.getBoundingClientRect()
+ const container = element.getBoundingClientRect()
+ return {
+ filenameLeft: filename.left,
+ filenameRight: filename.right,
+ containerLeft: container.left,
+ containerRight: container.right,
+ }
+ })
+ expect(filenameBounds.filenameLeft).toBeGreaterThanOrEqual(
+ filenameBounds.containerLeft
+ )
+ expect(filenameBounds.filenameRight).toBeLessThanOrEqual(
+ filenameBounds.containerRight + 1
+ )
+ await managedRow.screenshot({
+ path: testInfo.outputPath('ffmpeg-resolved-path-narrow.png'),
+ })
})
test('shows detection status and saves a manual path', async ({
mainWindow,
- }) => {
+ }, testInfo) => {
// 1. Open Settings page from the main sidebar.
await mainWindow
.getByRole('link', { name: 'Settings', exact: true })
@@ -88,6 +160,42 @@ test.describe('media settings', () => {
await detectionCard
.getByRole('button', { name: 'Show detection details' })
.click()
+ const envRow = detectionCard.getByTestId('candidate-row-env')
+ for (const width of [1000, 600]) {
+ await mainWindow.setViewportSize({ width, height: 740 })
+ await envRow.scrollIntoViewIfNeeded()
+ const bounds = await envRow.evaluate((row) => {
+ const [source, location, state] = Array.from(row.children)
+ const sourceRect = source.getBoundingClientRect()
+ const locationRect = location.getBoundingClientRect()
+ const stateRect = state.getBoundingClientRect()
+ const textRange = document.createRange()
+ textRange.selectNodeContents(source)
+ const sourceText = textRange.getBoundingClientRect()
+ return {
+ sourceRight: sourceRect.right,
+ sourceTextRight: sourceText.right,
+ locationLeft: locationRect.left,
+ locationRight: locationRect.right,
+ stateLeft: stateRect.left,
+ sourceCenter: (sourceRect.top + sourceRect.bottom) / 2,
+ locationCenter: (locationRect.top + locationRect.bottom) / 2,
+ stateCenter: (stateRect.top + stateRect.bottom) / 2,
+ }
+ })
+ expect(bounds.sourceTextRight).toBeLessThanOrEqual(bounds.sourceRight + 1)
+ expect(bounds.locationLeft - bounds.sourceRight).toBeGreaterThanOrEqual(
+ 11
+ )
+ expect(bounds.stateLeft - bounds.locationRight).toBeGreaterThanOrEqual(11)
+ expect(
+ Math.abs(bounds.sourceCenter - bounds.locationCenter)
+ ).toBeLessThan(2)
+ expect(Math.abs(bounds.sourceCenter - bounds.stateCenter)).toBeLessThan(2)
+ await envRow.locator('..').screenshot({
+ path: testInfo.outputPath(`ffmpeg-horizontal-columns-${width}.png`),
+ })
+ }
await detectionCard
.getByRole('button', { name: 'Edit custom FFmpeg path' })
.click()
@@ -96,6 +204,7 @@ test.describe('media settings', () => {
)
await pathInput.fill('/tmp/custom-ffmpeg')
await expect(pathInput).toHaveValue('/tmp/custom-ffmpeg')
+ await expect(pathInput).toHaveAttribute('title', '/tmp/custom-ffmpeg')
// 5. Save and verify that the dialog closes.
await mainWindow.getByRole('button', { name: 'Save' }).click()
diff --git a/src/core/ffmpeg/verified-install.test.ts b/src/core/ffmpeg/verified-install.test.ts
index c337e39d..743258f3 100644
--- a/src/core/ffmpeg/verified-install.test.ts
+++ b/src/core/ffmpeg/verified-install.test.ts
@@ -1,11 +1,14 @@
// @vitest-environment node
import { sign } from 'node:crypto'
import {
+ chmod,
link,
+ lstat,
mkdir,
mkdtemp,
readdir,
readFile,
+ rename,
rm,
symlink,
writeFile,
@@ -394,15 +397,73 @@ afterEach(async () => {
})
describe('verified FFmpeg releases', () => {
- it.each(['root', 'releases', 'version'])(
+ it('creates the missing binaries directory and keeps the verified installation inside it', async () => {
+ const userDataDir = await temp()
+ const binaries = path.join(userDataDir, 'binaries')
+ await expect(lstat(binaries)).rejects.toMatchObject({ code: 'ENOENT' })
+ const release = fixture()
+ await installVerifiedFfmpeg({
+ userDataDir,
+ arch: 'x64',
+ fetcher: release.fetcher,
+ })
+ const info = await lstat(binaries)
+ expect(info.isDirectory()).toBe(true)
+ if (process.platform !== 'win32') expect(info.mode & 0o777).toBe(0o700)
+ expect(await readdir(userDataDir)).toEqual(['binaries'])
+ expect(await readdir(binaries)).toEqual(['ffmpeg-verified'])
+ expect(getFfmpegInstallStatus(userDataDir).directory).toBe(
+ path.join(
+ binaries,
+ 'ffmpeg-verified',
+ 'releases',
+ `${sha256(release.raw)}-win32-x64`
+ )
+ )
+ })
+ it('preserves existing manual tools when creating the verified installation beside them', async () => {
+ const userDataDir = await temp()
+ const binaries = path.join(userDataDir, 'binaries')
+ await mkdir(binaries, { mode: 0o755 })
+ const names = [
+ 'ffmpeg',
+ 'ffprobe',
+ 'ffmpeg.exe',
+ 'ffprobe.exe',
+ 'other-tool',
+ ]
+ for (const name of names) {
+ await writeFile(path.join(binaries, name), `manual ${name}`)
+ }
+ const release = fixture()
+ await installVerifiedFfmpeg({
+ userDataDir,
+ arch: 'x64',
+ fetcher: release.fetcher,
+ })
+ for (const name of names) {
+ expect(await readFile(path.join(binaries, name), 'utf8')).toBe(
+ `manual ${name}`
+ )
+ }
+ expect((await readdir(binaries)).sort()).toEqual(
+ [...names, 'ffmpeg-verified'].sort()
+ )
+ })
+ it.each(['binaries', 'root', 'releases', 'version'])(
'rejects a managed %s directory symlink before creating or writing its target',
async (component) => {
const userDataDir = await temp()
const outside = await temp()
const release = fixture()
- const root = path.join(userDataDir, 'ffmpeg-verified')
- let linkPath = root
- if (component !== 'root') {
+ const binaries = path.join(userDataDir, 'binaries')
+ const root = path.join(userDataDir, 'binaries', 'ffmpeg-verified')
+ let linkPath = binaries
+ if (component !== 'binaries') {
+ await mkdir(binaries, { mode: 0o700 })
+ linkPath = root
+ }
+ if (component === 'releases' || component === 'version') {
await mkdir(root, { mode: 0o700 })
linkPath = path.join(root, 'releases')
}
@@ -434,19 +495,104 @@ describe('verified FFmpeg releases', () => {
).toBe(false)
}
)
- it('reports an invalid installation root as an install error, not a download failure', async () => {
+ it.each(['binaries', 'ffmpeg-verified'])(
+ 'reports a non-directory %s as an install error before downloading',
+ async (component) => {
+ const userDataDir = await temp()
+ const binaries = path.join(userDataDir, 'binaries')
+ if (component !== 'binaries') await mkdir(binaries, { mode: 0o700 })
+ await writeFile(
+ component === 'binaries'
+ ? binaries
+ : path.join(binaries, 'ffmpeg-verified'),
+ 'not a directory'
+ )
+ const fetcher = fixture().fetcher
+ await expect(
+ installVerifiedFfmpeg({ userDataDir, arch: 'x64', fetcher })
+ ).rejects.toThrow()
+ expect(getFfmpegInstallStatus(userDataDir).error).toBe('install')
+ expect(fetcher).not.toHaveBeenCalled()
+ }
+ )
+ it.skipIf(process.platform === 'win32')(
+ 'rejects a group- or world-writable binaries directory before downloading',
+ async () => {
+ const userDataDir = await temp()
+ const binaries = path.join(userDataDir, 'binaries')
+ await mkdir(binaries)
+ const fetcher = fixture().fetcher
+ for (const mode of [0o770, 0o707]) {
+ await chmod(binaries, mode)
+ await expect(
+ installVerifiedFfmpeg({ userDataDir, arch: 'x64', fetcher })
+ ).rejects.toThrow()
+ expect(getFfmpegInstallStatus(userDataDir).error).toBe('install')
+ expect(await readdir(binaries)).toEqual([])
+ }
+ expect(fetcher).not.toHaveBeenCalled()
+ }
+ )
+ it('rejects a binaries parent replaced with a link before resolving or trusting installed code', async () => {
const userDataDir = await temp()
- await writeFile(
- path.join(userDataDir, 'ffmpeg-verified'),
- 'not a directory'
+ const release = fixture()
+ await installVerifiedFfmpeg({
+ userDataDir,
+ arch: 'x64',
+ fetcher: release.fetcher,
+ })
+ const binaries = path.join(userDataDir, 'binaries')
+ const candidate = path.join(binaries, 'ffmpeg.exe')
+ const binary = resolveManagedFfmpegCandidate(
+ userDataDir,
+ candidate,
+ 'win32'
+ )
+ const moved = path.join(userDataDir, 'moved-binaries')
+ await rename(binaries, moved)
+ await symlink(
+ moved,
+ binaries,
+ process.platform === 'win32' ? 'junction' : 'dir'
+ )
+ expect(() => assertManagedFfmpegTrusted(userDataDir, binary)).toThrow(
+ 'Invalid managed FFmpeg directory'
)
- const fetcher = fixture().fetcher
+ expect(() =>
+ resolveManagedFfmpegCandidate(userDataDir, candidate, 'win32')
+ ).toThrow('Invalid managed FFmpeg directory')
+ release.fetcher.mockClear()
await expect(
- installVerifiedFfmpeg({ userDataDir, arch: 'x64', fetcher })
+ installVerifiedFfmpeg({
+ userDataDir,
+ arch: 'x64',
+ fetcher: release.fetcher,
+ })
).rejects.toThrow()
- expect(getFfmpegInstallStatus(userDataDir).error).toBe('install')
- expect(fetcher).not.toHaveBeenCalled()
+ expect(release.fetcher).not.toHaveBeenCalled()
})
+ it.skipIf(process.platform === 'win32')(
+ 'rechecks binaries parent permissions before trusting a cached managed binary',
+ async () => {
+ const userDataDir = await temp()
+ const release = fixture()
+ await installVerifiedFfmpeg({
+ userDataDir,
+ arch: 'x64',
+ fetcher: release.fetcher,
+ })
+ const binaries = path.join(userDataDir, 'binaries')
+ const binary = resolveManagedFfmpegCandidate(
+ userDataDir,
+ path.join(binaries, 'ffmpeg.exe'),
+ 'win32'
+ )
+ await chmod(binaries, 0o777)
+ expect(() => assertManagedFfmpegTrusted(userDataDir, binary)).toThrow(
+ 'Invalid managed FFmpeg directory'
+ )
+ }
+ )
it('rejects a signed same-version replacement and tampered reused files without changing the pointer', async () => {
const userDataDir = await temp()
const release = fixture()
@@ -455,7 +601,12 @@ describe('verified FFmpeg releases', () => {
arch: 'x64',
fetcher: release.fetcher,
})
- const pointer = path.join(userDataDir, 'ffmpeg-verified', 'current.json')
+ const pointer = path.join(
+ userDataDir,
+ 'binaries',
+ 'ffmpeg-verified',
+ 'current.json'
+ )
const before = await readFile(pointer)
const replacement = fixture(undefined, 'x64', 'win32', {
extra: 'same version substitution',
@@ -472,6 +623,7 @@ describe('verified FFmpeg releases', () => {
getFfmpegInstallStatus(userDataDir).directory ??
path.join(
userDataDir,
+ 'binaries',
'ffmpeg-verified',
'releases',
`${sha256(release.raw)}-win32-x64`
@@ -533,7 +685,12 @@ describe('verified FFmpeg releases', () => {
fetcher: original.fetcher,
systemTrust: async () => {},
})
- const pointer = path.join(userDataDir, 'ffmpeg-verified', 'current.json')
+ const pointer = path.join(
+ userDataDir,
+ 'binaries',
+ 'ffmpeg-verified',
+ 'current.json'
+ )
const before = await readFile(pointer)
const next = fixture('9.0.2-motrix.9', 'arm64', 'darwin')
await expect(
@@ -559,7 +716,12 @@ describe('verified FFmpeg releases', () => {
systemTrust: firstTrust,
})
const installedDirectory = getFfmpegInstallStatus(userDataDir).directory
- const pointer = path.join(userDataDir, 'ffmpeg-verified', 'current.json')
+ const pointer = path.join(
+ userDataDir,
+ 'binaries',
+ 'ffmpeg-verified',
+ 'current.json'
+ )
const before = await readFile(pointer)
const reusedTrust = vi.fn(async (directory: string) => {
if (directory === installedDirectory)
@@ -784,7 +946,12 @@ describe('verified FFmpeg releases', () => {
arch: 'x64',
fetcher: newer.fetcher,
})
- const pointer = path.join(userDataDir, 'ffmpeg-verified', 'current.json')
+ const pointer = path.join(
+ userDataDir,
+ 'binaries',
+ 'ffmpeg-verified',
+ 'current.json'
+ )
const before = await readFile(pointer)
await expect(
installVerifiedFfmpeg({
diff --git a/src/core/ffmpeg/verified-install.ts b/src/core/ffmpeg/verified-install.ts
index f3e2574d..0836b890 100644
--- a/src/core/ffmpeg/verified-install.ts
+++ b/src/core/ffmpeg/verified-install.ts
@@ -126,7 +126,7 @@ const releaseApiSchema = z
.passthrough()
function rootFor(userDataDir: string) {
- return path.resolve(userDataDir, 'ffmpeg-verified')
+ return path.resolve(userDataDir, 'binaries', 'ffmpeg-verified')
}
function assertManagedDirectory(directory: string, allowMissing = false) {
@@ -239,6 +239,7 @@ function hashBinary(
function readInstalled(userDataDir: string) {
const root = rootFor(userDataDir)
+ assertManagedDirectory(path.dirname(root))
assertManagedDirectory(root)
const receipt = receiptSchema.parse(
JSON.parse(
@@ -754,6 +755,7 @@ export async function installVerifiedFfmpeg(options: {
let staging: string | undefined
let pointer: string | undefined
try {
+ assertManagedDirectory(path.dirname(root), true)
assertManagedDirectory(root, true)
assertManagedDirectory(path.join(root, 'releases'), true)
const latestRaw = JSON.parse(
@@ -842,6 +844,7 @@ export async function installVerifiedFfmpeg(options: {
),
true
)
+ await ensureManagedDirectory(path.dirname(root))
await ensureManagedDirectory(root)
await ensureManagedDirectory(path.join(root, 'releases'))
publish({
diff --git a/src/core/plugin/capabilities/ffmpeg-detect.test.ts b/src/core/plugin/capabilities/ffmpeg-detect.test.ts
index 65c8ee2e..8d0be24b 100644
--- a/src/core/plugin/capabilities/ffmpeg-detect.test.ts
+++ b/src/core/plugin/capabilities/ffmpeg-detect.test.ts
@@ -73,6 +73,46 @@ function makeProbe(map: Record<string, FfmpegDetection>) {
}
describe('detectInOrder', () => {
+ it.each(['', '/custom/ffmpeg'])(
+ 'reports the resolved managed path even when manual preference is %s',
+ async (manualPath) => {
+ const binaryPath =
+ '/data/binaries/ffmpeg-verified/releases/hash-darwin-arm64/ffmpeg'
+ const result = await detectInOrder(
+ {
+ manualPath,
+ userDataBinariesDir: '/data/binaries',
+ platform: 'darwin',
+ envPath: null,
+ },
+ makeProbe({
+ '/custom/ffmpeg': {
+ available: true,
+ binaryPath: '/custom/ffmpeg',
+ version: '9.0.1',
+ },
+ '/data/binaries/ffmpeg': {
+ available: true,
+ binaryPath,
+ version: '9.0.2',
+ },
+ ffmpeg: {
+ available: true,
+ binaryPath: '/opt/bin/ffmpeg',
+ version: '8.1.0',
+ },
+ })
+ )
+ expect(result.candidates[1]).toMatchObject({
+ kind: 'userData',
+ path: binaryPath,
+ state: manualPath ? 'available' : 'active',
+ })
+ expect(result.candidates[3].path).toBe('/opt/bin/ffmpeg')
+ expect(result.active?.path).toBe(manualPath || binaryPath)
+ }
+ )
+
it('manual path wins when present and probes succeed', async () => {
const probe = makeProbe({
'/u/bin/ffmpeg': {
diff --git a/src/core/plugin/capabilities/ffmpeg-detect.ts b/src/core/plugin/capabilities/ffmpeg-detect.ts
index 4d22f93a..20caee5f 100644
--- a/src/core/plugin/capabilities/ffmpeg-detect.ts
+++ b/src/core/plugin/capabilities/ffmpeg-detect.ts
@@ -201,6 +201,7 @@ export function ffmpegCandidatesInOrder(
* - Probe succeeds and no active winner yet → `'active'`. The result's
* `active.path` is `probe.binaryPath ?? candidatePath` (PATH lookup may
* rewrite to an absolute path).
+ * Candidate rows also report this resolved path, rather than the lookup alias.
* - Probe succeeds but a higher-priority candidate already won →
* `'available'` (still includes version).
* - Probe reports `failureReason: 'untrusted'` → `'untrusted'`.
@@ -225,22 +226,23 @@ export async function detectInOrder(
}
// eslint-disable-next-line no-await-in-loop
const result = await probe(p)
+ const checkedPath = result.binaryPath ?? p
if (result.available) {
if (active === null) {
active = {
- path: result.binaryPath ?? p,
+ path: checkedPath,
version: result.version ?? '',
}
candidates.push({
kind: entry.kind,
- path: p,
+ path: checkedPath,
state: 'active',
version: result.version,
})
} else {
candidates.push({
kind: entry.kind,
- path: p,
+ path: checkedPath,
state: 'available',
version: result.version,
})
@@ -248,7 +250,7 @@ export async function detectInOrder(
} else {
candidates.push({
kind: entry.kind,
- path: p,
+ path: checkedPath,
state: result.failureReason === 'untrusted' ? 'untrusted' : 'missing',
})
}
diff --git a/src/main/plugin/ffmpeg-probe-managed.test.ts b/src/main/plugin/ffmpeg-probe-managed.test.ts
index 79bc8bbf..a573ca8c 100644
--- a/src/main/plugin/ffmpeg-probe-managed.test.ts
+++ b/src/main/plugin/ffmpeg-probe-managed.test.ts
@@ -18,7 +18,7 @@ vi.mock('./ffmpeg-macos-trust', () => ({
const userDataDir = '/fixture/user-data'
const managedBinary =
- '/fixture/user-data/ffmpeg-verified/releases/verified-darwin-arm64/ffmpeg'
+ '/fixture/user-data/binaries/ffmpeg-verified/releases/verified-darwin-arm64/ffmpeg'
const target = {
platform: 'darwin',
arch: 'arm64',
@@ -54,7 +54,7 @@ describe('authenticated managed macOS FFmpeg probing', () => {
managedBinary
)
expect(guards.systemTrust).toHaveBeenCalledWith(
- '/fixture/user-data/ffmpeg-verified/releases/verified-darwin-arm64',
+ '/fixture/user-data/binaries/ffmpeg-verified/releases/verified-darwin-arm64',
target,
'https://github.com/motrixapp/ffmpeg-static/releases/download/v9.0.2-motrix.8/ffmpeg-9.0.2-motrix.8-darwin-arm64.zip',
run
diff --git a/src/renderer/components/desktop-kit/middle-ellipsis.test.tsx b/src/renderer/components/desktop-kit/middle-ellipsis.test.tsx
new file mode 100644
index 00000000..1a9d623f
--- /dev/null
+++ b/src/renderer/components/desktop-kit/middle-ellipsis.test.tsx
@@ -0,0 +1,37 @@
+import '@testing-library/jest-dom/vitest'
+import { render } from '@testing-library/react'
+import { describe, expect, it } from 'vitest'
+import { MiddleEllipsis } from './middle-ellipsis'
+
+describe('MiddleEllipsis', () => {
+ it.each([
+ '',
+ 'ffmpeg',
+ '/Users/example/Library/Application Support/Motrix/binaries/ffmpeg-verified/releases/hash-darwin-arm64/ffmpeg',
+ 'C:\\Users\\example\\AppData\\Roaming\\Motrix\\binaries\\ffmpeg.exe',
+ '\\\\server\\share\\工具\\ffmpeg.exe',
+ '/data/👩‍💻/e\u0301/ffmpeg',
+ ])('keeps full accessible and tooltip text for %s', (text) => {
+ const { container } = render(<MiddleEllipsis text={text} />)
+ const root = container.querySelector('[data-slot="middle-ellipsis"]')
+ expect(root).toHaveAttribute('title', text)
+ expect(root).toHaveAttribute('dir', 'ltr')
+ expect(root?.querySelector('.sr-only')?.textContent).toBe(text)
+ const fragments = root?.querySelectorAll(':scope > [aria-hidden="true"]')
+ expect(fragments).toHaveLength(2)
+ expect(
+ Array.from(fragments ?? [], (fragment) => fragment.textContent).join('')
+ ).toBe(text)
+ expect(fragments?.[0]).toHaveClass('truncate')
+ expect(fragments?.[1]).toHaveClass('justify-end', 'overflow-hidden')
+ })
+
+ it('does not split a Unicode grapheme between the two fragments', () => {
+ const { container } = render(<MiddleEllipsis text="a👩‍💻b" />)
+ const fragments = container.querySelectorAll(
+ '[data-slot="middle-ellipsis"] > [aria-hidden="true"]'
+ )
+ expect(fragments[0]).toHaveTextContent('a👩‍💻')
+ expect(fragments[1]).toHaveTextContent('b')
+ })
+})
diff --git a/src/renderer/components/desktop-kit/middle-ellipsis.tsx b/src/renderer/components/desktop-kit/middle-ellipsis.tsx
new file mode 100644
index 00000000..93fe0d5d
--- /dev/null
+++ b/src/renderer/components/desktop-kit/middle-ellipsis.tsx
@@ -0,0 +1,46 @@
+import { cn } from '@renderer/lib/utils'
+
+const segmenter = new Intl.Segmenter(undefined, { granularity: 'grapheme' })
+
+/** Keep both ends visible without reversing path text or measuring layout. */
+export function MiddleEllipsis({
+ text,
+ className,
+}: {
+ text: string
+ className?: string
+}) {
+ const characters = Array.from(
+ segmenter.segment(text),
+ ({ segment }) => segment
+ )
+ const middle = Math.ceil(characters.length / 2)
+
+ return (
+ <span
+ data-slot="middle-ellipsis"
+ dir="ltr"
+ title={text}
+ className={cn(
+ 'inline-flex min-w-0 max-w-full align-bottom font-mono',
+ className
+ )}
+ >
+ <span className="sr-only">{text}</span>
+ <span
+ aria-hidden="true"
+ className="min-w-0 shrink truncate whitespace-pre"
+ >
+ {characters.slice(0, middle).join('')}
+ </span>
+ <span
+ aria-hidden="true"
+ className="flex min-w-0 shrink justify-end overflow-hidden"
+ >
+ <span className="shrink-0 whitespace-pre">
+ {characters.slice(middle).join('')}
+ </span>
+ </span>
+ </span>
+ )
+}
diff --git a/src/renderer/routes/settings/cards/integration/media-tools-section.test.tsx b/src/renderer/routes/settings/cards/integration/media-tools-section.test.tsx
index 48361dff..eb62961f 100644
--- a/src/renderer/routes/settings/cards/integration/media-tools-section.test.tsx
+++ b/src/renderer/routes/settings/cards/integration/media-tools-section.test.tsx
@@ -1,16 +1,18 @@
import '@testing-library/jest-dom/vitest'
-import '@renderer/lib/i18n'
import {
useSettingsForm,
useSettingsSubmit,
} from '@renderer/components/settings-kit/use-settings-form'
+import { i18n } from '@renderer/lib/i18n'
import { transport } from '@renderer/lib/transport'
import { EXTERNAL_URLS } from '@shared/external-urls'
import { Commands } from '@shared/protocol/commands'
import { Events } from '@shared/protocol/events'
import { Queries } from '@shared/protocol/queries'
import { DEFAULT_MEDIA_SETTINGS } from '@shared/schemas'
+import type { FfmpegInstallStatus } from '@shared/schemas/ffmpeg-release'
import {
+ act,
fireEvent,
render,
screen,
@@ -54,6 +56,29 @@ function TestForm({
)
}
+function mockInstallStatus(status: Partial<FfmpegInstallStatus>) {
+ Object.defineProperty(transport, 'platform', {
+ configurable: true,
+ value: 'linux',
+ })
+ const snapshot: FfmpegInstallStatus = {
+ phase: 'downloading',
+ bytesReceived: 50,
+ bytesTotal: 100,
+ percent: 0.5,
+ directory: null,
+ releaseVersion: '9.0.2-motrix.2',
+ error: null,
+ ...status,
+ }
+ vi.mocked(transport.invoke).mockImplementation(async (channel) =>
+ channel === Queries.GetFfmpegInstallStatus
+ ? snapshot
+ : { active: null, candidates: [] }
+ )
+ return snapshot
+}
+
describe('MediaToolsSection', () => {
it.each(['darwin', 'linux'])(
'offers verified one-click install on %s only after consent',
@@ -82,9 +107,7 @@ describe('MediaToolsSection', () => {
await screen.findByRole('button', { name: 'Download FFmpeg' })
)
expect(transport.invoke).not.toHaveBeenCalledWith(Commands.InstallFfmpeg)
- expect(
- screen.getByText(/GPL-licensed; included licenses/)
- ).toBeInTheDocument()
+ expect(screen.getByText(/Motrix build · GPL/)).toBeInTheDocument()
fireEvent.click(
screen.getByRole('button', { name: 'Download and verify' })
)
@@ -93,41 +116,193 @@ describe('MediaToolsSection', () => {
'Verified and installed.'
)
)
+ expect(
+ screen.queryByRole('button', { name: 'Download and verify' })
+ ).not.toBeInTheDocument()
+ fireEvent.click(screen.getByRole('button', { name: 'Download FFmpeg' }))
+ expect(
+ screen.getByRole('button', { name: 'Download and verify' })
+ ).toBeVisible()
+ expect(
+ vi
+ .mocked(transport.invoke)
+ .mock.calls.filter(([channel]) => channel === Commands.InstallFfmpeg)
+ ).toHaveLength(1)
}
)
it('mirrors an in-flight download after reopening, shows byte progress, and prevents duplicate operations', async () => {
- Object.defineProperty(transport, 'platform', {
- configurable: true,
- value: 'linux',
- })
- vi.mocked(transport.invoke).mockImplementation(async (channel) =>
- channel === Queries.GetFfmpegInstallStatus
- ? {
- phase: 'downloading',
- bytesReceived: 50,
- bytesTotal: 100,
- percent: 0.5,
- directory: null,
- releaseVersion: '9.0.2-motrix.2',
- error: null,
- }
- : { active: null, candidates: [] }
- )
+ mockInstallStatus({})
render(<TestForm />)
+ const progress = await screen.findByRole('progressbar', {
+ name: 'FFmpeg download progress',
+ })
+ expect(progress).toHaveAttribute('aria-valuenow', '50')
+ expect(progress).toHaveClass('sr-only', 'absolute!', 'h-px', 'w-px')
+ const button = screen.getByRole('button', {
+ name: 'Downloading FFmpeg… 50%',
+ })
+ expect(button).toBeDisabled()
+ expect(button).toHaveAttribute('aria-busy', 'true')
+ expect(button).toHaveAttribute('aria-describedby', progress.id)
+ expect(button).toHaveAttribute('title', '50 / 100 bytes')
+ expect(button).toHaveTextContent('50%')
+ expect(button).not.toHaveTextContent('Downloading FFmpeg…')
expect(
- await screen.findByRole('progressbar', {
- name: 'FFmpeg download progress',
- })
- ).toHaveAttribute('aria-valuenow', '50')
- expect(screen.getByText('50 / 100 bytes')).toBeInTheDocument()
- expect(screen.getByRole('button', { name: 'Verifying…' })).toBeDisabled()
- fireEvent.click(screen.getByRole('button', { name: 'Verifying…' }))
+ button.querySelector('[data-slot="ffmpeg-download-fill"]')
+ ).toHaveStyle({ transform: 'scaleX(0.5)' })
+ fireEvent.click(button)
expect(transport.invoke).not.toHaveBeenCalledWith(Commands.InstallFfmpeg)
expect(transport.on).toHaveBeenCalledWith(
Events.FfmpegInstallStatusChanged,
expect.any(Function)
)
})
+ it.each([
+ [0, '0%', 'scaleX(0)'],
+ [0.456, '46%', 'scaleX(0.46)'],
+ [0.999, '99%', 'scaleX(0.99)'],
+ [1, '100%', 'scaleX(1)'],
+ ] as const)(
+ 'fills the download button for progress %s',
+ async (percent, label, transform) => {
+ mockInstallStatus({ percent })
+ render(<TestForm />)
+ const button = await screen.findByRole('button', {
+ name: `Downloading FFmpeg… ${label}`,
+ })
+ expect(button).toHaveTextContent(label)
+ expect(button).toBeDisabled()
+ const fill = button.querySelector('[data-slot="ffmpeg-download-fill"]')
+ expect(fill).toHaveStyle({ transform })
+ expect(fill).toHaveAttribute('aria-hidden', 'true')
+ expect(fill).toHaveClass(
+ 'transition-transform',
+ 'motion-reduce:transition-none'
+ )
+ expect(screen.getByRole('progressbar')).toHaveAttribute(
+ 'aria-valuenow',
+ label.replace('%', '')
+ )
+ expect(
+ screen.queryByText('Verified and installed.')
+ ).not.toBeInTheDocument()
+ expect(screen.queryByText(/Motrix build · GPL/)).not.toBeInTheDocument()
+ }
+ )
+
+ it('does not invent a percentage while the download size is unknown', async () => {
+ mockInstallStatus({ bytesTotal: 0, percent: null })
+ render(<TestForm />)
+ const button = await screen.findByRole('button', {
+ name: 'Downloading FFmpeg…',
+ })
+ expect(button).toBeDisabled()
+ expect(button).toHaveAttribute('aria-busy', 'true')
+ expect(button).not.toHaveAttribute('title')
+ const spinner = button.querySelector('.animate-spin')
+ expect(spinner).toBeInTheDocument()
+ expect(spinner).toHaveClass('motion-reduce:animate-none')
+ expect(
+ button.querySelector('[data-slot="ffmpeg-download-fill"]')
+ ).toBeNull()
+ expect(button).not.toHaveTextContent('%')
+ expect(screen.getByRole('progressbar')).not.toHaveAttribute('aria-valuenow')
+ })
+
+ it.each([
+ ['metadata', 'Checking the formal release…'],
+ ['verifying', 'Verifying the release signature…'],
+ ['extracting', 'Verifying and extracting files…'],
+ ['systemTrust', 'Checking macOS signing and notarization…'],
+ ['installing', 'Installing FFmpeg…'],
+ ] as const)(
+ 'shows the %s phase inside the button without download progress',
+ async (phase, label) => {
+ mockInstallStatus({ phase, percent: 1 })
+ render(<TestForm />)
+ const button = await screen.findByRole('button', { name: label })
+ expect(button).toHaveTextContent(label)
+ expect(button).toBeDisabled()
+ expect(button).toHaveAttribute('aria-busy', 'true')
+ expect(button).not.toHaveAttribute('aria-describedby')
+ expect(button.querySelector('.animate-spin')).toBeInTheDocument()
+ expect(
+ button.querySelector('[data-slot="ffmpeg-download-fill"]')
+ ).toBeNull()
+ expect(screen.queryByRole('progressbar')).not.toBeInTheDocument()
+ expect(screen.getByRole('status')).toHaveTextContent(label)
+ }
+ )
+
+ it('updates the same button from download percentage to verification on a transport event', async () => {
+ const snapshot = mockInstallStatus({})
+ render(<TestForm />)
+ const button = await screen.findByRole('button', {
+ name: 'Downloading FFmpeg… 50%',
+ })
+ const listener = vi
+ .mocked(transport.on)
+ .mock.calls.find(
+ ([event]) => event === Events.FfmpegInstallStatusChanged
+ )?.[1]
+ expect(listener).toBeDefined()
+ snapshot.phase = 'verifying'
+ snapshot.percent = null
+ await act(async () => listener?.())
+ expect(
+ screen.getByRole('button', { name: 'Verifying the release signature…' })
+ ).toBe(button)
+ expect(button).toBeDisabled()
+ expect(screen.queryByRole('progressbar')).not.toBeInTheDocument()
+ expect(
+ button.querySelector('[data-slot="ffmpeg-download-fill"]')
+ ).toBeNull()
+ })
+
+ it('links to the official FFmpeg manual before install consent', async () => {
+ mockInstallStatus({ phase: 'idle', percent: null })
+ render(<TestForm />)
+ const manual = await screen.findByRole('link', { name: 'FFmpeg manual' })
+ expect(manual).toHaveAttribute('href', 'https://motrix.app/manual/ffmpeg/')
+ expect(manual).toHaveAttribute('rel', 'noopener noreferrer')
+ expect(manual).toHaveAttribute('target', '_blank')
+ expect(
+ screen.queryByRole('button', { name: 'Download and verify' })
+ ).not.toBeInTheDocument()
+ fireEvent.click(screen.getByRole('button', { name: 'Download FFmpeg' }))
+ expect(
+ screen.getByRole('button', { name: 'Download and verify' })
+ ).toBeVisible()
+ expect(
+ screen.queryByRole('button', { name: 'Download FFmpeg' })
+ ).not.toBeInTheDocument()
+ expect(manual).toBeInTheDocument()
+ expect(transport.invoke).not.toHaveBeenCalledWith(Commands.InstallFfmpeg)
+ })
+
+ it.each(['zh-CN', 'zh-TW'])(
+ 'links to the Chinese FFmpeg manual for %s without English fallback',
+ async (locale) => {
+ mockInstallStatus({ phase: 'idle', percent: null })
+ try {
+ await act(async () => i18n.changeLanguage(locale))
+ render(<TestForm />)
+ const manual = await screen.findByRole('link', {
+ name: locale === 'zh-CN' ? 'FFmpeg 手册' : 'FFmpeg 手冊',
+ })
+ expect(manual).toHaveAttribute(
+ 'href',
+ 'https://motrix.app/zh/manual/ffmpeg/'
+ )
+ expect(
+ screen.queryByRole('link', { name: 'FFmpeg manual' })
+ ).not.toBeInTheDocument()
+ } finally {
+ await act(async () => i18n.changeLanguage('en-US'))
+ }
+ }
+ )
+
beforeEach(() => {
vi.clearAllMocks()
Object.defineProperty(transport, 'platform', {
@@ -165,9 +340,7 @@ describe('MediaToolsSection', () => {
await screen.findByRole('button', { name: 'Download FFmpeg' })
)
expect(transport.invoke).not.toHaveBeenCalledWith(Commands.InstallFfmpeg)
- expect(
- screen.getByText(/no public Authenticode signature/)
- ).toBeInTheDocument()
+ expect(screen.getByText(/not Authenticode/)).toBeInTheDocument()
fireEvent.click(screen.getByRole('button', { name: 'Download and verify' }))
await waitFor(() =>
expect(screen.getByRole('status')).toHaveTextContent(
@@ -290,24 +463,31 @@ describe('MediaToolsSection', () => {
it('copies the complete Motrix data FFmpeg path when clicked', async () => {
const managedPath =
- '/Users/example/Library/Application Support/Motrix/ffmpeg/bin/ffmpeg'
+ '/Users/example/Library/Application Support/Motrix/binaries/ffmpeg-verified/releases/hash-darwin-arm64/ffmpeg'
vi.mocked(transport.invoke).mockResolvedValue({
- active: null,
+ active: { path: managedPath, version: '9.0.2' },
candidates: [
{ kind: 'manual', path: null, state: 'unconfigured' },
- { kind: 'userData', path: managedPath, state: 'missing' },
+ {
+ kind: 'userData',
+ path: managedPath,
+ state: 'active',
+ version: '9.0.2',
+ },
],
})
render(<TestForm />)
+ expect(screen.queryByText(/Save to use this path/)).not.toBeInTheDocument()
fireEvent.click(
await screen.findByRole('button', { name: 'Show detection details' })
)
+ expect(screen.getByText(/Save to use this path/)).toBeVisible()
const managedPathButton = await screen.findByRole('button', {
name: 'Copy Motrix FFmpeg path',
})
const managedRow = screen.getByTestId('candidate-row-userData')
- expect(within(managedRow).getByText(managedPath)).toHaveAttribute(
+ expect(within(managedRow).getByTitle(managedPath)).toHaveAttribute(
'title',
managedPath
)
@@ -324,6 +504,48 @@ describe('MediaToolsSection', () => {
)
})
+ it('shows and copies the complete installed directory without hiding its suffix', async () => {
+ const directory =
+ '/Users/example/Library/Application Support/Motrix/binaries/ffmpeg-verified/releases/hash-darwin-arm64'
+ mockInstallStatus({ phase: 'installed', directory, percent: null })
+ render(<TestForm />)
+ fireEvent.click(
+ await screen.findByRole('button', { name: 'Download FFmpeg' })
+ )
+ const row = await screen.findByTestId('ffmpeg-installed-directory')
+ expect(within(row).getByTitle(directory)).toHaveAttribute(
+ 'data-slot',
+ 'middle-ellipsis'
+ )
+ expect(within(row).getByText('Installed directory:')).toBeVisible()
+ fireEvent.click(
+ within(row).getByRole('button', { name: 'Copy Motrix FFmpeg path' })
+ )
+ await waitFor(() =>
+ expect(navigator.clipboard.writeText).toHaveBeenCalledWith(directory)
+ )
+ })
+
+ it.each(['env', 'path'] as const)(
+ 'keeps the complete %s path in the title',
+ async (kind) => {
+ const binaryPath = '/opt/media tools/ffmpeg/bin/ffmpeg'
+ vi.mocked(transport.invoke).mockResolvedValue({
+ active: null,
+ candidates: [{ kind, path: binaryPath, state: 'available' }],
+ })
+ render(<TestForm />)
+ fireEvent.click(
+ await screen.findByRole('button', { name: 'Show detection details' })
+ )
+ expect(
+ within(screen.getByTestId(`candidate-row-${kind}`)).getByTitle(
+ binaryPath
+ )
+ ).toHaveAttribute('data-slot', 'middle-ellipsis')
+ }
+ )
+
it('edits the custom FFmpeg path directly in the detection row', async () => {
vi.mocked(transport.invoke).mockResolvedValue({
active: null,
@@ -353,11 +575,15 @@ describe('MediaToolsSection', () => {
expect(input).toHaveAttribute('placeholder', 'Not set')
fireEvent.change(input, { target: { value: '/opt/ffmpeg/bin/ffmpeg' } })
expect(input).toHaveValue('/opt/ffmpeg/bin/ffmpeg')
+ expect(input).toHaveAttribute('title', '/opt/ffmpeg/bin/ffmpeg')
fireEvent.keyDown(input, { key: 'Enter' })
await waitFor(() =>
expect(within(manualRow).queryByRole('textbox')).not.toBeInTheDocument()
)
expect(within(manualRow).getByText('/opt/ffmpeg/bin/ffmpeg')).toBeVisible()
+ expect(
+ within(manualRow).getByTitle('/opt/ffmpeg/bin/ffmpeg')
+ ).toHaveAttribute('data-slot', 'middle-ellipsis')
expect(
within(manualRow).getByRole('button', {
name: 'Edit custom FFmpeg path',
diff --git a/src/renderer/routes/settings/cards/integration/media-tools-section.tsx b/src/renderer/routes/settings/cards/integration/media-tools-section.tsx
index b2b4d228..b1012790 100644
--- a/src/renderer/routes/settings/cards/integration/media-tools-section.tsx
+++ b/src/renderer/routes/settings/cards/integration/media-tools-section.tsx
@@ -1,8 +1,10 @@
import { CopyButton } from '@renderer/components/desktop-kit/copy-button'
+import { MiddleEllipsis } from '@renderer/components/desktop-kit/middle-ellipsis'
import {
CheckIcon,
ChevronRightIcon,
EditIcon,
+ HelpIcon,
InstallIcon,
RefreshIcon,
SecurityWarningIcon,
@@ -26,12 +28,14 @@ import {
} from '@renderer/components/ui/form'
import { Input } from '@renderer/components/ui/input'
import { Progress } from '@renderer/components/ui/progress'
+import { Spinner } from '@renderer/components/ui/spinner'
import { useFfmpegInstall } from '@renderer/hooks/use-ffmpeg-install'
+import { formatProgressPercent } from '@renderer/lib/format'
import { transport } from '@renderer/lib/transport'
import { cn } from '@renderer/lib/utils'
-import { EXTERNAL_URLS } from '@shared/external-urls'
+import { EXTERNAL_URLS, getFfmpegManualUrl } from '@shared/external-urls'
import { Queries } from '@shared/protocol/queries'
-import { useEffect, useState } from 'react'
+import { useEffect, useId, useState } from 'react'
import { useFormContext } from 'react-hook-form'
import { useTranslation } from 'react-i18next'
import type { IntegrationFormValues } from './integration-dialog'
@@ -69,7 +73,7 @@ function candidateStateVariant(state: CandidateStateUI) {
}
export function MediaToolsSection() {
- const { t } = useTranslation()
+ const { t, i18n } = useTranslation()
const form = useFormContext<IntegrationFormValues>()
const [detection, setDetection] = useState<FfmpegDetectionResultUI | null>(
null
@@ -77,6 +81,7 @@ export function MediaToolsSection() {
const [detailsOpen, setDetailsOpen] = useState(false)
const [customPathEditing, setCustomPathEditing] = useState(false)
const [installPrompt, setInstallPrompt] = useState(false)
+ const downloadProgressId = useId()
const {
status: installStatus,
installing,
@@ -93,6 +98,23 @@ export function MediaToolsSection() {
const visibleError = installError ?? installStatus?.error
const pathError = form.formState.errors.media?.ffmpegBinaryPath
const editingPath = customPathEditing || Boolean(pathError)
+ const installPhase =
+ installing &&
+ installStatus &&
+ !['idle', 'installed', 'failed'].includes(installStatus.phase)
+ ? installStatus.phase
+ : null
+ const downloadProgress =
+ installPhase === 'downloading' && installStatus?.percent != null
+ ? formatProgressPercent(installStatus.percent)
+ : undefined
+ const installLabel = installing
+ ? t(
+ installPhase
+ ? `settings.integration.media.download.phases.${installPhase}`
+ : 'settings.integration.media.download.installing'
+ )
+ : t('settings.integration.media.download.verifyInstall')
useEffect(() => {
let cancelled = false
@@ -173,6 +195,14 @@ export function MediaToolsSection() {
? candidates
: [{ kind: 'manual', path: null, state: 'unconfigured' }, ...candidates]
const candidateCount = candidates.length
+ const showInstallControls =
+ canInstall && Boolean(installPrompt || installing || visibleResult)
+ const showInstallAction = showInstallControls && visibleResult !== 'installed'
+ const directoryLabel = installStatus?.directory
+ ? t('settings.integration.media.download.directory', { path: '\0' }).split(
+ '\0'
+ )
+ : null
return (
<div className="space-y-4">
@@ -194,20 +224,44 @@ export function MediaToolsSection() {
</div>
</div>
<div className="flex shrink-0 items-center gap-1">
- {canInstall ? (
- <Button
- type="button"
- size="icon-sm"
- variant="ghost"
- disabled={installing}
- aria-label={t('settings.integration.media.download.action')}
- onClick={() => setInstallPrompt(true)}
- >
- <InstallIcon
- className="size-4 text-muted-foreground"
- aria-hidden
+ <Button
+ render={
+ <a
+ href={getFfmpegManualUrl(i18n.language)}
+ target="_blank"
+ rel="noopener noreferrer"
+ aria-label={t('settings.integration.media.download.manual')}
+ title={t('settings.integration.media.download.manual')}
+ // biome-ignore lint/a11y/noRedundantRoles: Base UI Button applies button semantics unless this rendered anchor explicitly overrides them.
+ role="link"
/>
- </Button>
+ }
+ nativeButton={false}
+ size="icon-sm"
+ variant="ghost"
+ >
+ <HelpIcon className="size-4 text-muted-foreground" aria-hidden />
+ </Button>
+ {canInstall ? (
+ !showInstallAction && (
+ <Button
+ type="button"
+ size="icon-sm"
+ variant="ghost"
+ disabled={installing}
+ aria-label={t('settings.integration.media.download.action')}
+ onClick={() => {
+ setInstallPrompt(true)
+ setInstallResult(null)
+ setInstallError(null)
+ }}
+ >
+ <InstallIcon
+ className="size-4 text-muted-foreground"
+ aria-hidden
+ />
+ </Button>
+ )
) : (
<Button
render={
@@ -243,49 +297,89 @@ export function MediaToolsSection() {
</div>
</div>
- {(installPrompt || installing || visibleResult) && canInstall && (
- <div className="space-y-2 text-xs text-muted-foreground">
- <p>{t('settings.integration.media.download.projectDisclosure')}</p>
- {transport.platform === 'win32' && (
- <p>{t('settings.integration.media.download.disclosure')}</p>
- )}
- {transport.platform === 'darwin' && (
- <p>{t('settings.integration.media.download.macDisclosure')}</p>
+ {showInstallControls && (
+ <div className="space-y-2 border-t border-border pt-2 text-xs text-muted-foreground">
+ {!installing && visibleResult !== 'installed' && (
+ <p className="leading-normal">
+ {t('settings.integration.media.download.projectDisclosure')}
+ {transport.platform === 'win32' && (
+ <> {t('settings.integration.media.download.disclosure')}</>
+ )}
+ {transport.platform === 'darwin' && (
+ <> {t('settings.integration.media.download.macDisclosure')}</>
+ )}
+ </p>
)}
- <Button
- type="button"
- size="sm"
- disabled={installing}
- onClick={install}
- >
- {t(
- `settings.integration.media.download.${installing ? 'installing' : 'verifyInstall'}`
- )}
- </Button>
- {installing && installStatus && (
- <div className="space-y-1" role="status" aria-live="polite">
- <p>
- {t(
- `settings.integration.media.download.phases.${installStatus.phase}`
- )}
- </p>
- {installStatus.percent !== null && (
- <Progress
- value={installStatus.percent * 100}
- aria-label={t(
- 'settings.integration.media.download.progress'
- )}
- />
+ {showInstallAction && (
+ <Button
+ data-testid="ffmpeg-install-action"
+ type="button"
+ size="sm"
+ className={cn(
+ 'relative min-h-7 h-auto! max-w-full overflow-hidden rounded-md! px-2 py-1 text-xs shadow-none transition-colors motion-reduce:transition-none',
+ installing && 'disabled:opacity-100'
)}
- {installStatus.phase === 'downloading' && (
- <p>
- {t('settings.integration.media.download.bytes', {
- received: installStatus.bytesReceived.toLocaleString(),
- total: installStatus.bytesTotal.toLocaleString(),
- })}
- </p>
+ aria-label={
+ downloadProgress === undefined
+ ? installLabel
+ : `${installLabel} ${downloadProgress}%`
+ }
+ aria-busy={installing || undefined}
+ title={
+ installPhase === 'downloading' &&
+ installStatus &&
+ installStatus.bytesTotal > 0
+ ? t('settings.integration.media.download.bytes', {
+ received: installStatus.bytesReceived.toLocaleString(),
+ total: installStatus.bytesTotal.toLocaleString(),
+ })
+ : undefined
+ }
+ aria-describedby={
+ installPhase === 'downloading'
+ ? downloadProgressId
+ : undefined
+ }
+ disabled={installing}
+ onClick={install}
+ >
+ {downloadProgress !== undefined && (
+ <span
+ data-slot="ffmpeg-download-fill"
+ className="pointer-events-none absolute inset-0 origin-left bg-primary-foreground/20 transition-transform duration-200 ease-linear motion-reduce:transition-none"
+ style={{ transform: `scaleX(${downloadProgress / 100})` }}
+ aria-hidden="true"
+ />
)}
- </div>
+ <span className="relative inline-flex items-center justify-center gap-1.5">
+ {installing && downloadProgress === undefined ? (
+ <Spinner
+ className="size-3.5 motion-reduce:animate-none"
+ aria-hidden="true"
+ />
+ ) : (
+ <InstallIcon className="size-3.5" aria-hidden="true" />
+ )}
+ <span className="whitespace-normal tabular-nums">
+ {downloadProgress === undefined
+ ? installLabel
+ : `${downloadProgress}%`}
+ </span>
+ </span>
+ </Button>
+ )}
+ {installing && (
+ <p className="sr-only" role="status">
+ {installLabel}
+ </p>
+ )}
+ {installPhase === 'downloading' && installStatus && (
+ <Progress
+ id={downloadProgressId}
+ className="sr-only absolute! h-px w-px"
+ value={downloadProgress}
+ aria-label={t('settings.integration.media.download.progress')}
+ />
)}
{visibleResult && (
<p role="status">
@@ -298,19 +392,38 @@ export function MediaToolsSection() {
)}
</span>
)}
- </p>
- )}
- {visibleResult === 'installed' && (
- <p>
- {t('settings.integration.media.download.restartPluginHint')}
+ {visibleResult === 'installed' && (
+ <span>
+ {' '}
+ {t('settings.integration.media.download.restartPluginHint')}
+ </span>
+ )}
</p>
)}
{installStatus?.directory && (
- <p className="break-all">
- {t('settings.integration.media.download.directory', {
- path: installStatus.directory,
- })}
- </p>
+ <div
+ data-testid="ffmpeg-installed-directory"
+ className="flex min-w-0 items-center gap-1.5"
+ >
+ <span className="shrink-0">{directoryLabel?.[0]}</span>
+ <MiddleEllipsis
+ text={installStatus.directory}
+ className="flex-1"
+ />
+ {directoryLabel?.[1] && (
+ <span className="shrink-0">{directoryLabel[1]}</span>
+ )}
+ <CopyButton
+ content={installStatus.directory}
+ iconPosition="end"
+ variant="ghost"
+ size="icon-xs"
+ aria-label={t(
+ 'settings.integration.media.detection.copyManagedPath'
+ )}
+ className="shrink-0 text-muted-foreground hover:text-foreground"
+ />
+ </div>
)}
{detectionRefreshFailed && (
<p role="alert">
@@ -322,11 +435,12 @@ export function MediaToolsSection() {
</div>
)}
- {transport.platform !== 'web' && (
- <p className="text-xs text-muted-foreground">
- {t('settings.integration.media.applyHint')}
- </p>
- )}
+ {transport.platform !== 'web' &&
+ (detailsOpen || Boolean(pathError)) && (
+ <p className="text-xs text-muted-foreground">
+ {t('settings.integration.media.applyHint')}
+ </p>
+ )}
<Collapsible
open={detailsOpen || Boolean(pathError)}
@@ -364,7 +478,7 @@ export function MediaToolsSection() {
</div>
<CollapsibleContent className="mt-2">
<div className="overflow-hidden rounded-md border border-border bg-background/70 text-xs mb-1">
- <div className="grid grid-cols-[10rem_minmax(0,1fr)_7rem] gap-2 border-b border-border px-3 py-2 font-medium text-muted-foreground">
+ <div className="grid grid-cols-[9rem_minmax(0,1fr)_5rem] gap-3 border-b border-border px-3 py-2 font-medium text-muted-foreground">
<span>{t('settings.integration.media.detection.source')}</span>
<span>
{t('settings.integration.media.detection.location')}
@@ -377,9 +491,9 @@ export function MediaToolsSection() {
<div
key={c.kind}
data-testid={`candidate-row-${c.kind}`}
- className="grid min-h-11 grid-cols-[10rem_minmax(0,1fr)_7rem] items-center gap-2 border-b border-border px-3 py-2 last:border-b-0"
+ className="grid min-h-11 grid-cols-[9rem_minmax(0,1fr)_5rem] items-center gap-3 border-b border-border px-3 py-2 last:border-b-0"
>
- <span className="font-medium text-foreground">
+ <span className="min-w-0 break-all font-medium text-foreground">
{t(`settings.integration.media.candidateKind.${c.kind}`)}
</span>
{c.kind === 'manual' ? (
@@ -394,6 +508,7 @@ export function MediaToolsSection() {
{...field}
autoFocus
data-testid="media-binary-path-input"
+ title={field.value || undefined}
aria-label={t(
'settings.integration.media.binaryPath'
)}
@@ -416,15 +531,16 @@ export function MediaToolsSection() {
}}
/>
</FormControl>
+ ) : field.value ? (
+ <MiddleEllipsis
+ text={field.value}
+ className="text-muted-foreground"
+ />
) : (
- <span
- className="min-w-0 flex-1 truncate font-mono text-muted-foreground"
- title={field.value || undefined}
- >
- {field.value ||
- t(
- 'settings.integration.media.detection.notConfigured'
- )}
+ <span className="text-muted-foreground">
+ {t(
+ 'settings.integration.media.detection.notConfigured'
+ )}
</span>
)}
<Button
@@ -462,13 +578,10 @@ export function MediaToolsSection() {
/>
) : c.kind === 'userData' && c.path ? (
<div className="grid h-7 min-w-0 grid-cols-[minmax(0,1fr)_1.5rem] items-center gap-1">
- <span
- dir="ltr"
- title={c.path}
- className="min-w-0 truncate font-mono text-muted-foreground"
- >
- {c.path}
- </span>
+ <MiddleEllipsis
+ text={c.path}
+ className="text-muted-foreground"
+ />
<CopyButton
content={c.path}
iconPosition="end"
@@ -484,13 +597,20 @@ export function MediaToolsSection() {
/>
</div>
) : (
- <span
- className="truncate font-mono text-muted-foreground"
- title={c.path ?? undefined}
- >
- {c.path ??
- t('settings.integration.media.detection.notConfigured')}
- </span>
+ <div className="min-w-0">
+ {c.path ? (
+ <MiddleEllipsis
+ text={c.path}
+ className="text-muted-foreground"
+ />
+ ) : (
+ <span className="text-muted-foreground">
+ {t(
+ 'settings.integration.media.detection.notConfigured'
+ )}
+ </span>
+ )}
+ </div>
)}
<Badge
variant={candidateStateVariant(c.state)}
diff --git a/src/shared/external-urls.test.ts b/src/shared/external-urls.test.ts
index 4a0268fe..92d797e5 100644
--- a/src/shared/external-urls.test.ts
+++ b/src/shared/external-urls.test.ts
@@ -1,5 +1,29 @@
import { describe, expect, it } from 'vitest'
-import { EXTERNAL_URLS, getNatTroubleshootingUrl } from './external-urls'
+import {
+ EXTERNAL_URLS,
+ getFfmpegManualUrl,
+ getNatTroubleshootingUrl,
+} from './external-urls'
+
+describe('getFfmpegManualUrl', () => {
+ it.each(['zh-CN', 'zh-TW', 'zh-Hant-TW', 'ZH-cn'])(
+ 'uses the Chinese FFmpeg manual for %s',
+ (locale) => {
+ expect(getFfmpegManualUrl(locale)).toBe(
+ 'https://motrix.app/zh/manual/ffmpeg/'
+ )
+ }
+ )
+
+ it.each(['en-US', 'de', 'ja', ''])(
+ 'uses the English FFmpeg manual for %s',
+ (locale) => {
+ expect(getFfmpegManualUrl(locale)).toBe(
+ 'https://motrix.app/manual/ffmpeg/'
+ )
+ }
+ )
+})
describe('getNatTroubleshootingUrl', () => {
it('points FFmpeg downloads at the standalone motrixapp project', () => {
diff --git a/src/shared/external-urls.ts b/src/shared/external-urls.ts
index 091b2a5a..18ddecb0 100644
--- a/src/shared/external-urls.ts
+++ b/src/shared/external-urls.ts
@@ -31,6 +31,10 @@ export const EXTERNAL_URLS = {
releaseNotes: 'https://motrix.app/release-notes/',
manual: {
home: 'https://motrix.app/manual/',
+ ffmpeg: {
+ en: 'https://motrix.app/manual/ffmpeg/',
+ zh: 'https://motrix.app/zh/manual/ffmpeg/',
+ },
linuxAutostart: {
en: 'https://motrix.app/manual/linux-autostart/',
zh: 'https://motrix.app/zh/manual/linux-autostart/',
@@ -49,6 +53,11 @@ export const EXTERNAL_URLS = {
},
} as const
+export function getFfmpegManualUrl(language: string): string {
+ const locale = language.toLowerCase().startsWith('zh') ? 'zh' : 'en'
+ return EXTERNAL_URLS.motrix.manual.ffmpeg[locale]
+}
+
export function getNatTroubleshootingUrl(language: string): string {
const locale = language.toLowerCase().startsWith('zh') ? 'zh' : 'en'
return EXTERNAL_URLS.motrix.manual.natTroubleshooting[locale]
diff --git a/src/shared/locales/ar.json b/src/shared/locales/ar.json
index 43fe2d55..6bef09f9 100644
--- a/src/shared/locales/ar.json
+++ b/src/shared/locales/ar.json
@@ -2470,12 +2470,13 @@
"download": {
"action": "تنزيل FFmpeg",
"verifyInstall": "تنزيل والتحقق",
+ "manual": "دليل FFmpeg",
"installing": "جارٍ التحقق…",
"installed": "تم التحقق والتثبيت.",
"failed": "فشل التنزيل أو التحقق. تم الاحتفاظ بالتثبيت السابق.",
- "disclosure": "يتحقق Motrix من توقيع مشروعه. هذه الملفات التنفيذية لنظام Windows لا تحمل توقيع Authenticode عامًا؛ وقد تستمر تحذيرات Windows في الظهور. FFmpeg مرخّص بموجب GPL، ونصوص التراخيص مرفقة.",
- "projectDisclosure": "نزّل إصدار FFmpeg الرسمي المبني بواسطة Motrix بشكل منفصل، وتحقق من توقيعه ثم ثبّته في مجلد بيانات Motrix. يخضع FFmpeg لترخيص GPL؛ وتسري التراخيص المرفقة وشروط الشيفرة المصدرية المقابلة.",
- "macDisclosure": "يتحقق macOS من شهادة Developer ID المثبّتة مسبقًا وإثبات التوثيق عبر الإنترنت من Apple. يبقى عزل ملفات الإنترنت مفعّلًا؛ ولا يتم تجاوز وسائل حماية النظام.",
+ "disclosure": "يُتحقق بتوقيع مشروع Motrix، لا Authenticode. قد تبقى تحذيرات Windows.",
+ "projectDisclosure": "نسخة Motrix · GPL. تُثبّت في مجلد بيانات Motrix بعد التحقق.",
+ "macDisclosure": "يُتحقق من Developer ID والتوثيق لدى Apple. تبقى حماية النظام مفعّلة.",
"progress": "تقدم تنزيل FFmpeg",
"bytes": "{{received}} / {{total}} بايت",
"directory": "مجلد التثبيت: {{path}}",
diff --git a/src/shared/locales/bg.json b/src/shared/locales/bg.json
index cd90fb10..2a9d0260 100644
--- a/src/shared/locales/bg.json
+++ b/src/shared/locales/bg.json
@@ -2390,12 +2390,13 @@
"download": {
"action": "Изтегляне на FFmpeg",
"verifyInstall": "Изтегляне и проверка",
+ "manual": "Ръководство за FFmpeg",
"installing": "Проверяване…",
"installed": "Проверено и инсталирано.",
"failed": "Изтеглянето или проверката е неуспешна. Предишната инсталация е запазена.",
- "disclosure": "Motrix проверява подписа на проекта. Тези двоични файлове за Windows нямат публичен подпис Authenticode; предупрежденията на Windows може да продължат да се показват. FFmpeg е лицензиран под GPL; текстовете на лицензите са включени.",
- "projectDisclosure": "Изтеглете отделно официалната компилация на FFmpeg от Motrix, проверете подписа и я инсталирайте в папката с данни на Motrix. FFmpeg е лицензиран по GPL; прилагат се включените лицензи и съответният изходен код.",
- "macDisclosure": "macOS проверява фиксирания сертификат Developer ID и онлайн удостоверението за нотариална заверка от Apple. Интернет карантината остава активна; системните защити не се заобикалят.",
+ "disclosure": "Проверява се подписът на проекта Motrix, не Authenticode. Windows може да показва предупреждения.",
+ "projectDisclosure": "Компилация на Motrix · GPL. Проверява се и се инсталира в папката с данни на Motrix.",
+ "macDisclosure": "Проверяват се Developer ID и нотариалното удостоверяване. Системните защити остават включени.",
"progress": "Напредък на изтеглянето на FFmpeg",
"bytes": "{{received}} / {{total}} байта",
"directory": "Папка за инсталиране: {{path}}",
diff --git a/src/shared/locales/ca.json b/src/shared/locales/ca.json
index e67348f8..c8a76fa1 100644
--- a/src/shared/locales/ca.json
+++ b/src/shared/locales/ca.json
@@ -2410,12 +2410,13 @@
"download": {
"action": "Baixar l'FFmpeg",
"verifyInstall": "Baixar i verificar",
+ "manual": "Manual de FFmpeg",
"installing": "S’està verificant…",
"installed": "Verificat i instal·lat.",
"failed": "La baixada o la verificació ha fallat. S’ha conservat la instal·lació anterior.",
- "disclosure": "El Motrix verifica la signatura del projecte. Aquests binaris del Windows no tenen una signatura Authenticode pública; els avisos del Windows poden continuar apareixent. L’FFmpeg té llicència GPL; s’inclouen els textos de les llicències.",
- "projectDisclosure": "Baixeu per separat la compilació oficial de FFmpeg de Motrix, verifiqueu-ne la signatura i instal·leu-la al directori de dades de Motrix. FFmpeg té llicència GPL; s’apliquen les llicències incloses i el codi font corresponent.",
- "macDisclosure": "macOS verifica el certificat Developer ID fixat i el comprovant de notarització en línia d’Apple. La quarantena d’Internet es manté; no s’eludeixen les proteccions del sistema.",
+ "disclosure": "Es verifica la signatura del projecte Motrix, no Authenticode. Windows pot continuar mostrant avisos.",
+ "projectDisclosure": "Compilació de Motrix · GPL. Es verifica i s’instal·la al directori de dades de Motrix.",
+ "macDisclosure": "Es verifiquen Developer ID i la notarització. Les proteccions del sistema es mantenen activades.",
"progress": "Progrés de la baixada de FFmpeg",
"bytes": "{{received}} / {{total}} bytes",
"directory": "Directori d’instal·lació: {{path}}",
diff --git a/src/shared/locales/de.json b/src/shared/locales/de.json
index 915265c5..e15c81ea 100644
--- a/src/shared/locales/de.json
+++ b/src/shared/locales/de.json
@@ -1973,12 +1973,13 @@
"download": {
"action": "FFmpeg herunterladen",
"verifyInstall": "Herunterladen und prüfen",
+ "manual": "FFmpeg-Handbuch",
"installing": "Wird geprüft…",
"installed": "Geprüft und installiert.",
"failed": "Download oder Prüfung fehlgeschlagen. Die bisherige Installation bleibt erhalten.",
- "disclosure": "Motrix prüft die Projektsignatur. Diese Windows-Dateien haben keine öffentliche Authenticode-Signatur; Warnungen können weiterhin erscheinen. FFmpeg wird unter der GPL mit Lizenztexten verteilt.",
- "projectDisclosure": "Den offiziellen Motrix-Build von FFmpeg separat herunterladen, seine Signatur prüfen und im Motrix-Datenverzeichnis installieren. FFmpeg steht unter der GPL; die beigefügten Lizenzen und zugehörigen Quelltexte sind zu beachten.",
- "macDisclosure": "macOS prüft das festgelegte Developer-ID-Zertifikat und Apples Online-Beglaubigungsnachweis. Die Internet-Quarantäne bleibt aktiv; Systemschutzmaßnahmen werden nicht umgangen.",
+ "disclosure": "Geprüft wird die Motrix-Projektsignatur, nicht Authenticode. Windows-Warnungen können weiterhin erscheinen.",
+ "projectDisclosure": "Motrix-Build · GPL. Wird geprüft und im Motrix-Datenverzeichnis installiert.",
+ "macDisclosure": "Developer ID und Notarisierung werden geprüft. Der Systemschutz bleibt aktiv.",
"progress": "FFmpeg-Downloadfortschritt",
"bytes": "{{received}} / {{total}} Bytes",
"directory": "Installationsverzeichnis: {{path}}",
diff --git a/src/shared/locales/el.json b/src/shared/locales/el.json
index bf25d9b6..56acf135 100644
--- a/src/shared/locales/el.json
+++ b/src/shared/locales/el.json
@@ -2390,12 +2390,13 @@
"download": {
"action": "Λήψη FFmpeg",
"verifyInstall": "Λήψη και επαλήθευση",
+ "manual": "Εγχειρίδιο FFmpeg",
"installing": "Επαλήθευση…",
"installed": "Η επαλήθευση και η εγκατάσταση ολοκληρώθηκαν.",
"failed": "Η λήψη ή η επαλήθευση απέτυχε. Η προηγούμενη εγκατάσταση διατηρήθηκε.",
- "disclosure": "Το Motrix επαληθεύει την υπογραφή του έργου. Αυτά τα δυαδικά αρχεία για Windows δεν έχουν δημόσια υπογραφή Authenticode· ενδέχεται να συνεχίσουν να εμφανίζονται προειδοποιήσεις των Windows. Το FFmpeg διατίθεται με άδεια GPL· περιλαμβάνονται τα κείμενα των αδειών.",
- "projectDisclosure": "Κατεβάστε ξεχωριστά την επίσημη έκδοση FFmpeg του Motrix, επαληθεύστε την υπογραφή και εγκαταστήστε τη στον φάκελο δεδομένων του Motrix. Το FFmpeg διατίθεται με άδεια GPL· ισχύουν οι συνοδευτικές άδειες και ο αντίστοιχος πηγαίος κώδικας.",
- "macDisclosure": "Το macOS επαληθεύει το προκαθορισμένο πιστοποιητικό Developer ID και το διαδικτυακό αποδεικτικό συμβολαιογραφικής επικύρωσης της Apple. Η καραντίνα διαδικτύου παραμένει ενεργή· οι προστασίες του συστήματος δεν παρακάμπτονται.",
+ "disclosure": "Ελέγχεται η υπογραφή του έργου Motrix, όχι Authenticode. Τα Windows μπορεί να εμφανίζουν προειδοποιήσεις.",
+ "projectDisclosure": "Έκδοση Motrix · GPL. Ελέγχεται και εγκαθίσταται στον φάκελο δεδομένων του Motrix.",
+ "macDisclosure": "Ελέγχονται Developer ID και επικύρωση Apple. Η προστασία του συστήματος παραμένει ενεργή.",
"progress": "Πρόοδος λήψης FFmpeg",
"bytes": "{{received}} / {{total}} byte",
"directory": "Φάκελος εγκατάστασης: {{path}}",
diff --git a/src/shared/locales/en-US.json b/src/shared/locales/en-US.json
index 34d4f13b..cc1ce31a 100644
--- a/src/shared/locales/en-US.json
+++ b/src/shared/locales/en-US.json
@@ -1973,12 +1973,13 @@
"download": {
"action": "Download FFmpeg",
"verifyInstall": "Download and verify",
+ "manual": "FFmpeg manual",
"installing": "Verifying…",
"installed": "Verified and installed.",
"failed": "Download or verification failed. The previous installation was kept.",
- "disclosure": "Motrix verifies its project signature. These Windows binaries have no public Authenticode signature; Windows warnings may remain. FFmpeg is GPL-licensed; license texts are included.",
- "projectDisclosure": "Download the official Motrix FFmpeg build separately, verify its signature, and install it in Motrix’s data directory. FFmpeg is GPL-licensed; included licenses and corresponding sources apply.",
- "macDisclosure": "macOS verifies the pinned Developer ID certificate and Apple’s online notarization ticket. Internet quarantine remains enabled; system protections aren’t bypassed.",
+ "disclosure": "Uses Motrix’s project signature, not Authenticode. Windows warnings may remain.",
+ "projectDisclosure": "Motrix build · GPL. Installs in Motrix’s data directory after verification.",
+ "macDisclosure": "Checks Developer ID and notarization. Keeps system protections enabled.",
"progress": "FFmpeg download progress",
"bytes": "{{received}} / {{total}} bytes",
"directory": "Installed directory: {{path}}",
diff --git a/src/shared/locales/es.json b/src/shared/locales/es.json
index 1656be39..4545accb 100644
--- a/src/shared/locales/es.json
+++ b/src/shared/locales/es.json
@@ -1987,12 +1987,13 @@
"download": {
"action": "Descargar FFmpeg",
"verifyInstall": "Descargar y verificar",
+ "manual": "Manual de FFmpeg",
"installing": "Verificando…",
"installed": "Verificado e instalado.",
"failed": "La descarga o verificación falló. Se conserva la instalación anterior.",
- "disclosure": "Motrix verifica la firma del proyecto. Estos binarios de Windows no tienen firma Authenticode pública; pueden aparecer advertencias. FFmpeg se distribuye bajo la GPL con los textos de licencia.",
- "projectDisclosure": "Descarga por separado la compilación oficial de FFmpeg de Motrix, verifica su firma e instálala en el directorio de datos de Motrix. FFmpeg tiene licencia GPL; deben respetarse las licencias incluidas y el código fuente correspondiente.",
- "macDisclosure": "macOS verifica el certificado Developer ID fijado y el comprobante de notarización en línea de Apple. Se mantiene la cuarentena de Internet; no se eluden las protecciones del sistema.",
+ "disclosure": "Se verifica la firma del proyecto Motrix, no Authenticode. Windows puede seguir mostrando advertencias.",
+ "projectDisclosure": "Compilación de Motrix · GPL. Se verifica e instala en el directorio de datos de Motrix.",
+ "macDisclosure": "Se verifican Developer ID y la notarización. Las protecciones del sistema siguen activadas.",
"progress": "Progreso de descarga de FFmpeg",
"bytes": "{{received}} / {{total}} bytes",
"directory": "Directorio de instalación: {{path}}",
diff --git a/src/shared/locales/fa.json b/src/shared/locales/fa.json
index 59613438..a65660e1 100644
--- a/src/shared/locales/fa.json
+++ b/src/shared/locales/fa.json
@@ -2390,12 +2390,13 @@
"download": {
"action": "دانلود FFmpeg",
"verifyInstall": "دانلود و تأیید",
+ "manual": "راهنمای FFmpeg",
"installing": "در حال تأیید…",
"installed": "تأیید و نصب شد.",
"failed": "دانلود یا تأیید ناموفق بود. نصب قبلی حفظ شد.",
- "disclosure": "Motrix امضای پروژهٔ خود را تأیید می‌کند. این فایل‌های اجرایی Windows امضای عمومی Authenticode ندارند؛ ممکن است هشدارهای Windows همچنان نمایش داده شوند. FFmpeg تحت مجوز GPL عرضه می‌شود و متن مجوزها همراه آن است.",
- "projectDisclosure": "نسخهٔ رسمی FFmpeg ساخته‌شده توسط Motrix را جداگانه دانلود کنید، امضای آن را تأیید و در پوشهٔ داده‌های Motrix نصب کنید. FFmpeg تحت مجوز GPL است؛ مجوزهای همراه و شرایط کد منبع متناظر اعمال می‌شوند.",
- "macDisclosure": "macOS گواهی Developer ID از پیش تثبیت‌شده و رسید تأیید آنلاین Apple را بررسی می‌کند. قرنطینهٔ فایل‌های اینترنتی فعال می‌ماند؛ حفاظت‌های سیستم دور زده نمی‌شوند.",
+ "disclosure": "امضای پروژهٔ Motrix تأیید می‌شود، نه Authenticode. هشدارهای Windows ممکن است باقی بمانند.",
+ "projectDisclosure": "ساخت Motrix · GPL. پس از تأیید در پوشهٔ داده‌های Motrix نصب می‌شود.",
+ "macDisclosure": "Developer ID و تأیید رسمی Apple بررسی می‌شوند. حفاظت‌های سیستم فعال می‌مانند.",
"progress": "پیشرفت دانلود FFmpeg",
"bytes": "{{received}} / {{total}} بایت",
"directory": "پوشهٔ نصب: {{path}}",
diff --git a/src/shared/locales/fr.json b/src/shared/locales/fr.json
index f96f2d4e..e59595e1 100644
--- a/src/shared/locales/fr.json
+++ b/src/shared/locales/fr.json
@@ -2410,12 +2410,13 @@
"download": {
"action": "Télécharger FFmpeg",
"verifyInstall": "Télécharger et vérifier",
+ "manual": "Manuel FFmpeg",
"installing": "Vérification…",
"installed": "Vérifié et installé.",
"failed": "Le téléchargement ou la vérification a échoué. L’installation précédente est conservée.",
- "disclosure": "Motrix vérifie la signature du projet. Ces binaires Windows n’ont pas de signature Authenticode publique ; des avertissements peuvent subsister. FFmpeg est distribué sous GPL avec les licences.",
- "projectDisclosure": "Téléchargez séparément la version officielle de FFmpeg compilée par Motrix, vérifiez sa signature et installez-la dans le dossier de données de Motrix. FFmpeg est sous licence GPL ; les licences et les sources correspondantes s’appliquent.",
- "macDisclosure": "macOS vérifie le certificat Developer ID épinglé et le ticket de notarisation en ligne d’Apple. La quarantaine Internet reste active ; les protections du système ne sont pas contournées.",
+ "disclosure": "La signature du projet Motrix est vérifiée, pas Authenticode. Windows peut encore afficher des avertissements.",
+ "projectDisclosure": "Compilation Motrix · GPL. Vérifiée et installée dans le dossier de données de Motrix.",
+ "macDisclosure": "Developer ID et notarisation sont vérifiés. Les protections du système restent activées.",
"progress": "Progression du téléchargement de FFmpeg",
"bytes": "{{received}} / {{total}} octets",
"directory": "Dossier d’installation : {{path}}",
diff --git a/src/shared/locales/hu.json b/src/shared/locales/hu.json
index 48a2e7cc..609934dd 100644
--- a/src/shared/locales/hu.json
+++ b/src/shared/locales/hu.json
@@ -1973,12 +1973,13 @@
"download": {
"action": "FFmpeg letöltése",
"verifyInstall": "Letöltés és ellenőrzés",
+ "manual": "FFmpeg-kézikönyv",
"installing": "Ellenőrzés…",
"installed": "Ellenőrizve és telepítve.",
"failed": "A letöltés vagy az ellenőrzés sikertelen. A korábbi telepítés megmaradt.",
- "disclosure": "A Motrix ellenőrzi a projekt aláírását. Ezek a Windows-binárisok nem rendelkeznek nyilvános Authenticode-aláírással; a Windows figyelmeztetései továbbra is megjelenhetnek. Az FFmpeg GPL-licencű; a licencek szövege mellékelve van.",
- "projectDisclosure": "Töltsd le külön a Motrix hivatalos FFmpeg-kiadását, ellenőrizd az aláírását, és telepítsd a Motrix adatkönyvtárába. Az FFmpeg GPL-licencű; a mellékelt licencek és a hozzájuk tartozó forráskód feltételei érvényesek.",
- "macDisclosure": "A macOS ellenőrzi a rögzített Developer ID-tanúsítványt és az Apple online notarizációs igazolását. Az internetes karantén bekapcsolva marad; a rendszervédelmet nem kerüljük meg.",
+ "disclosure": "A Motrix projektaláírását ellenőrzi, nem Authenticode-aláírást. A Windows továbbra is figyelmeztethet.",
+ "projectDisclosure": "Motrix-build · GPL. Ellenőrzés után a Motrix adatkönyvtárába kerül.",
+ "macDisclosure": "Ellenőrzi a Developer ID-t és az Apple hitelesítését. A rendszervédelem bekapcsolva marad.",
"progress": "Az FFmpeg letöltésének állapota",
"bytes": "{{received}} / {{total}} bájt",
"directory": "Telepítési könyvtár: {{path}}",
diff --git a/src/shared/locales/id.json b/src/shared/locales/id.json
index fac23d40..55a39b4f 100644
--- a/src/shared/locales/id.json
+++ b/src/shared/locales/id.json
@@ -1959,12 +1959,13 @@
"download": {
"action": "Unduh FFmpeg",
"verifyInstall": "Unduh dan verifikasi",
+ "manual": "Panduan FFmpeg",
"installing": "Memverifikasi…",
"installed": "Berhasil diverifikasi dan dipasang.",
"failed": "Unduhan atau verifikasi gagal. Instalasi sebelumnya tetap dipertahankan.",
- "disclosure": "Motrix memverifikasi tanda tangan proyeknya. Berkas biner Windows ini tidak memiliki tanda tangan Authenticode publik; peringatan Windows mungkin tetap muncul. FFmpeg berlisensi GPL; teks lisensi disertakan.",
- "projectDisclosure": "Unduh secara terpisah build FFmpeg resmi dari Motrix, verifikasi tanda tangannya, lalu pasang di direktori data Motrix. FFmpeg berlisensi GPL; lisensi yang disertakan dan kode sumber terkait berlaku.",
- "macDisclosure": "macOS memverifikasi sertifikat Developer ID yang dipatok dan tiket notarisasi daring Apple. Karantina Internet tetap aktif; perlindungan sistem tidak dilewati.",
+ "disclosure": "Menggunakan verifikasi tanda tangan proyek Motrix, bukan Authenticode. Peringatan Windows mungkin tetap muncul.",
+ "projectDisclosure": "Build Motrix · GPL. Diverifikasi lalu dipasang di direktori data Motrix.",
+ "macDisclosure": "Developer ID dan notarisasi diperiksa. Perlindungan sistem tetap aktif.",
"progress": "Progres unduhan FFmpeg",
"bytes": "{{received}} / {{total}} byte",
"directory": "Direktori pemasangan: {{path}}",
diff --git a/src/shared/locales/it.json b/src/shared/locales/it.json
index 7daca5af..d8a5ff54 100644
--- a/src/shared/locales/it.json
+++ b/src/shared/locales/it.json
@@ -1987,12 +1987,13 @@
"download": {
"action": "Scarica FFmpeg",
"verifyInstall": "Scarica e verifica",
+ "manual": "Manuale FFmpeg",
"installing": "Verifica…",
"installed": "Verificato e installato.",
"failed": "Download o verifica non riusciti. L’installazione precedente è stata mantenuta.",
- "disclosure": "Motrix verifica la firma del progetto. Questi binari Windows non hanno una firma Authenticode pubblica; gli avvisi di Windows potrebbero continuare a comparire. FFmpeg è distribuito con licenza GPL; i testi delle licenze sono inclusi.",
- "projectDisclosure": "Scarica separatamente la build ufficiale di FFmpeg di Motrix, verificane la firma e installala nella cartella dei dati di Motrix. FFmpeg è distribuito con licenza GPL; si applicano le licenze incluse e i sorgenti corrispondenti.",
- "macDisclosure": "macOS verifica il certificato Developer ID fissato e il ticket di notarizzazione online di Apple. La quarantena Internet resta attiva; le protezioni del sistema non vengono aggirate.",
+ "disclosure": "Si verifica la firma del progetto Motrix, non Authenticode. Windows potrebbe ancora mostrare avvisi.",
+ "projectDisclosure": "Build Motrix · GPL. Verificata e installata nella cartella dati di Motrix.",
+ "macDisclosure": "Developer ID e notarizzazione vengono verificati. Le protezioni del sistema restano attive.",
"progress": "Avanzamento del download di FFmpeg",
"bytes": "{{received}} / {{total}} byte",
"directory": "Cartella di installazione: {{path}}",
diff --git a/src/shared/locales/ja.json b/src/shared/locales/ja.json
index 0994587e..5494531e 100644
--- a/src/shared/locales/ja.json
+++ b/src/shared/locales/ja.json
@@ -1959,12 +1959,13 @@
"download": {
"action": "FFmpeg をダウンロード",
"verifyInstall": "ダウンロードして検証",
+ "manual": "FFmpeg マニュアル",
"installing": "検証中…",
"installed": "検証してインストールしました。",
"failed": "ダウンロードまたは検証に失敗しました。既存のインストールは保持されます。",
- "disclosure": "Motrix はプロジェクトの署名を検証します。Windows バイナリに公開 Authenticode 署名はなく、警告が表示される場合があります。FFmpeg は GPL で配布され、ライセンス文書が同梱されます。",
- "projectDisclosure": "Motrix 公式ビルドの FFmpeg を別途ダウンロードし、署名を検証して Motrix のデータディレクトリにインストールします。FFmpeg は GPL ライセンスです。同梱のライセンスおよび対応するソースコードの利用条件に従ってください。",
- "macDisclosure": "macOS は固定された Developer ID 証明書と Apple のオンライン公証チケットを検証します。インターネット隔離属性は保持され、システムの保護は回避されません。",
+ "disclosure": "Authenticode ではなく Motrix のプロジェクト署名を検証します。Windows の警告は引き続き表示される場合があります。",
+ "projectDisclosure": "Motrix ビルド · GPL。検証後、Motrix のデータフォルダーにインストールします。",
+ "macDisclosure": "Developer ID と公証を検証します。システムの保護機能は有効なままです。",
"progress": "FFmpeg のダウンロード進捗",
"bytes": "{{received}} / {{total}} バイト",
"directory": "インストール先:{{path}}",
diff --git a/src/shared/locales/ko.json b/src/shared/locales/ko.json
index 27626df7..c5e93d69 100644
--- a/src/shared/locales/ko.json
+++ b/src/shared/locales/ko.json
@@ -1959,12 +1959,13 @@
"download": {
"action": "FFmpeg 다운로드",
"verifyInstall": "다운로드 및 검증",
+ "manual": "FFmpeg 매뉴얼",
"installing": "검증 중…",
"installed": "검증 후 설치되었습니다.",
"failed": "다운로드 또는 검증에 실패했습니다. 기존 설치는 유지됩니다.",
- "disclosure": "Motrix가 프로젝트 서명을 검증합니다. Windows 바이너리에 공인 Authenticode 서명이 없어 시스템 경고가 표시될 수 있습니다. FFmpeg는 GPL로 배포되며 라이선스 문서가 포함됩니다.",
- "projectDisclosure": "Motrix 공식 FFmpeg 빌드를 별도로 다운로드하고 서명을 검증한 뒤 Motrix 데이터 디렉터리에 설치합니다. FFmpeg는 GPL 라이선스이며, 포함된 라이선스와 해당 소스 코드의 이용 조건을 따라야 합니다.",
- "macDisclosure": "macOS가 고정된 Developer ID 인증서와 Apple의 온라인 공증 티켓을 검증합니다. 인터넷 격리 속성은 유지되며 시스템 보호를 우회하지 않습니다.",
+ "disclosure": "Authenticode가 아닌 Motrix 프로젝트 서명으로 검증합니다. Windows 경고는 계속 표시될 수 있습니다.",
+ "projectDisclosure": "Motrix 빌드 · GPL. 검증 후 Motrix 데이터 폴더에 설치합니다.",
+ "macDisclosure": "Developer ID와 공증을 확인합니다. 시스템 보호 기능은 유지됩니다.",
"progress": "FFmpeg 다운로드 진행 상황",
"bytes": "{{received}} / {{total}}바이트",
"directory": "설치 디렉터리: {{path}}",
diff --git a/src/shared/locales/nb.json b/src/shared/locales/nb.json
index 097b4f98..6fda569e 100644
--- a/src/shared/locales/nb.json
+++ b/src/shared/locales/nb.json
@@ -2390,12 +2390,13 @@
"download": {
"action": "Last ned FFmpeg",
"verifyInstall": "Last ned og kontroller",
+ "manual": "FFmpeg-håndbok",
"installing": "Kontrollerer…",
"installed": "Kontrollert og installert.",
"failed": "Nedlasting eller kontroll mislyktes. Den forrige installasjonen ble beholdt.",
- "disclosure": "Motrix kontrollerer prosjektets signatur. Disse Windows-binærfilene har ingen offentlig Authenticode-signatur; Windows kan fortsatt vise advarsler. FFmpeg er GPL-lisensiert; lisenstekstene er inkludert.",
- "projectDisclosure": "Last ned Motrix sin offisielle FFmpeg-versjon separat, kontroller signaturen og installer den i Motrix sin datamappe. FFmpeg er GPL-lisensiert; de medfølgende lisensene og den tilhørende kildekoden gjelder.",
- "macDisclosure": "macOS kontrollerer det fastlagte Developer ID-sertifikatet og Apples nettbaserte notariseringsbevis. Internettkarantene beholdes; systembeskyttelsen omgås ikke.",
+ "disclosure": "Motrix-prosjektsignaturen verifiseres, ikke Authenticode. Windows kan fortsatt vise advarsler.",
+ "projectDisclosure": "Motrix-bygg · GPL. Verifiseres og installeres i Motrix’ datamappe.",
+ "macDisclosure": "Developer ID og notarisering kontrolleres. Systembeskyttelsen forblir aktiv.",
"progress": "Fremdrift for FFmpeg-nedlasting",
"bytes": "{{received}} / {{total}} byte",
"directory": "Installasjonsmappe: {{path}}",
diff --git a/src/shared/locales/nl.json b/src/shared/locales/nl.json
index 7576dbd3..fa10bdb5 100644
--- a/src/shared/locales/nl.json
+++ b/src/shared/locales/nl.json
@@ -2390,12 +2390,13 @@
"download": {
"action": "FFmpeg downloaden",
"verifyInstall": "Downloaden en verifiëren",
+ "manual": "FFmpeg-handleiding",
"installing": "Verifiëren…",
"installed": "Geverifieerd en geïnstalleerd.",
"failed": "Downloaden of verifiëren is mislukt. De vorige installatie is behouden.",
- "disclosure": "Motrix verifieert de handtekening van het project. Deze Windows-binaire bestanden hebben geen openbare Authenticode-handtekening; Windows kan waarschuwingen blijven tonen. FFmpeg wordt onder de GPL-licentie aangeboden; de licentieteksten zijn inbegrepen.",
- "projectDisclosure": "Download de officiële Motrix-build van FFmpeg afzonderlijk, controleer de handtekening en installeer deze in de gegevensmap van Motrix. FFmpeg valt onder de GPL; de meegeleverde licenties en bijbehorende broncode zijn van toepassing.",
- "macDisclosure": "macOS controleert het vastgelegde Developer ID-certificaat en het online notarisatiebewijs van Apple. Internetquarantaine blijft ingeschakeld; systeembeveiligingen worden niet omzeild.",
+ "disclosure": "De Motrix-projecthandtekening wordt gecontroleerd, niet Authenticode. Windows kan waarschuwingen blijven tonen.",
+ "projectDisclosure": "Motrix-build · GPL. Wordt geverifieerd en geïnstalleerd in de gegevensmap van Motrix.",
+ "macDisclosure": "Developer ID en notarisatie worden gecontroleerd. Systeembeveiliging blijft ingeschakeld.",
"progress": "Downloadvoortgang van FFmpeg",
"bytes": "{{received}} / {{total}} bytes",
"directory": "Installatiemap: {{path}}",
diff --git a/src/shared/locales/pl.json b/src/shared/locales/pl.json
index 59ae954e..03619880 100644
--- a/src/shared/locales/pl.json
+++ b/src/shared/locales/pl.json
@@ -2001,12 +2001,13 @@
"download": {
"action": "Pobierz FFmpeg",
"verifyInstall": "Pobierz i zweryfikuj",
+ "manual": "Podręcznik FFmpeg",
"installing": "Weryfikowanie…",
"installed": "Zweryfikowano i zainstalowano.",
"failed": "Pobieranie lub weryfikacja nie powiodły się. Zachowano poprzednią instalację.",
- "disclosure": "Motrix weryfikuje podpis projektu. Te pliki binarne dla systemu Windows nie mają publicznego podpisu Authenticode; system Windows może nadal wyświetlać ostrzeżenia. FFmpeg jest udostępniany na licencji GPL; teksty licencji są dołączone.",
- "projectDisclosure": "Pobierz osobno oficjalną kompilację FFmpeg od Motrix, zweryfikuj jej podpis i zainstaluj ją w katalogu danych Motrix. FFmpeg jest objęty licencją GPL; obowiązują dołączone licencje i odpowiadający im kod źródłowy.",
- "macDisclosure": "macOS weryfikuje przypięty certyfikat Developer ID oraz internetowy bilet notaryzacji Apple. Kwarantanna plików z Internetu pozostaje włączona; zabezpieczenia systemu nie są omijane.",
+ "disclosure": "Sprawdzany jest podpis projektu Motrix, nie Authenticode. Windows może nadal wyświetlać ostrzeżenia.",
+ "projectDisclosure": "Kompilacja Motrix · GPL. Sprawdzana i instalowana w katalogu danych Motrix.",
+ "macDisclosure": "Sprawdzane są Developer ID i poświadczenie Apple. Zabezpieczenia systemu pozostają włączone.",
"progress": "Postęp pobierania FFmpeg",
"bytes": "{{received}} / {{total}} bajtów",
"directory": "Katalog instalacji: {{path}}",
diff --git a/src/shared/locales/pt-BR.json b/src/shared/locales/pt-BR.json
index d00949be..8b75ea4c 100644
--- a/src/shared/locales/pt-BR.json
+++ b/src/shared/locales/pt-BR.json
@@ -1987,12 +1987,13 @@
"download": {
"action": "Baixar FFmpeg",
"verifyInstall": "Baixar e verificar",
+ "manual": "Manual do FFmpeg",
"installing": "Verificando…",
"installed": "Verificado e instalado.",
"failed": "O download ou a verificação falhou. A instalação anterior foi mantida.",
- "disclosure": "O Motrix verifica a assinatura do projeto. Estes binários do Windows não têm uma assinatura Authenticode pública; os avisos do Windows podem continuar aparecendo. O FFmpeg é licenciado sob a GPL; os textos das licenças estão incluídos.",
- "projectDisclosure": "Baixe separadamente a versão oficial do FFmpeg compilada pelo Motrix, verifique a assinatura e instale-a no diretório de dados do Motrix. O FFmpeg usa a licença GPL; aplicam-se as licenças incluídas e os códigos-fonte correspondentes.",
- "macDisclosure": "O macOS verifica o certificado Developer ID fixado e o comprovante de notarização on-line da Apple. A quarentena de Internet é mantida; as proteções do sistema não são contornadas.",
+ "disclosure": "A assinatura do projeto Motrix é verificada, não Authenticode. O Windows ainda pode exibir avisos.",
+ "projectDisclosure": "Compilação Motrix · GPL. Verificada e instalada na pasta de dados do Motrix.",
+ "macDisclosure": "Developer ID e notarização são verificados. As proteções do sistema permanecem ativadas.",
"progress": "Progresso do download do FFmpeg",
"bytes": "{{received}} / {{total}} bytes",
"directory": "Diretório de instalação: {{path}}",
diff --git a/src/shared/locales/ro.json b/src/shared/locales/ro.json
index b30e08e9..d16458b5 100644
--- a/src/shared/locales/ro.json
+++ b/src/shared/locales/ro.json
@@ -2410,12 +2410,13 @@
"download": {
"action": "Descarcă FFmpeg",
"verifyInstall": "Descarcă și verifică",
+ "manual": "Manual FFmpeg",
"installing": "Se verifică…",
"installed": "Verificat și instalat.",
"failed": "Descărcarea sau verificarea a eșuat. Instalarea anterioară a fost păstrată.",
- "disclosure": "Motrix verifică semnătura proiectului. Aceste fișiere binare pentru Windows nu au o semnătură Authenticode publică; Windows poate afișa în continuare avertismente. FFmpeg este distribuit sub licența GPL; textele licențelor sunt incluse.",
- "projectDisclosure": "Descarcă separat versiunea oficială FFmpeg compilată de Motrix, verifică semnătura și instaleaz-o în directorul de date Motrix. FFmpeg este licențiat sub GPL; se aplică licențele incluse și codul sursă corespunzător.",
- "macDisclosure": "macOS verifică certificatul Developer ID fixat și tichetul de notarizare online Apple. Carantina pentru fișierele de pe Internet rămâne activă; protecțiile sistemului nu sunt ocolite.",
+ "disclosure": "Se verifică semnătura proiectului Motrix, nu Authenticode. Windows poate afișa în continuare avertismente.",
+ "projectDisclosure": "Compilare Motrix · GPL. Verificată și instalată în directorul de date Motrix.",
+ "macDisclosure": "Se verifică Developer ID și notarizarea. Protecțiile sistemului rămân active.",
"progress": "Progresul descărcării FFmpeg",
"bytes": "{{received}} / {{total}} octeți",
"directory": "Director de instalare: {{path}}",
diff --git a/src/shared/locales/ru.json b/src/shared/locales/ru.json
index bbb99cc7..a161bacc 100644
--- a/src/shared/locales/ru.json
+++ b/src/shared/locales/ru.json
@@ -2001,12 +2001,13 @@
"download": {
"action": "Скачать FFmpeg",
"verifyInstall": "Скачать и проверить",
+ "manual": "Руководство FFmpeg",
"installing": "Проверка…",
"installed": "Проверено и установлено.",
"failed": "Не удалось скачать или проверить файлы. Предыдущая установка сохранена.",
- "disclosure": "Motrix проверяет подпись своего проекта. Эти исполняемые файлы для Windows не имеют публичной подписи Authenticode; предупреждения Windows могут сохраняться. FFmpeg распространяется по лицензии GPL; тексты лицензий включены.",
- "projectDisclosure": "Скачайте официальную сборку FFmpeg от Motrix отдельно, проверьте подпись и установите её в каталог данных Motrix. FFmpeg распространяется по GPL; применяются приложенные лицензии и соответствующие исходные тексты.",
- "macDisclosure": "macOS проверяет закреплённый сертификат Developer ID и онлайн-билет нотариального заверения Apple. Интернет-карантин сохраняется; защита системы не обходится.",
+ "disclosure": "Проверяется подпись проекта Motrix, не Authenticode. Windows может по-прежнему показывать предупреждения.",
+ "projectDisclosure": "Сборка Motrix · GPL. Проверяется и устанавливается в каталог данных Motrix.",
+ "macDisclosure": "Проверяются Developer ID и нотариальное заверение. Защита системы остаётся включённой.",
"progress": "Ход загрузки FFmpeg",
"bytes": "{{received}} / {{total}} байт",
"directory": "Каталог установки: {{path}}",
diff --git a/src/shared/locales/th.json b/src/shared/locales/th.json
index fac16beb..46cda851 100644
--- a/src/shared/locales/th.json
+++ b/src/shared/locales/th.json
@@ -2370,12 +2370,13 @@
"download": {
"action": "ดาวน์โหลด FFmpeg",
"verifyInstall": "ดาวน์โหลดและตรวจสอบ",
+ "manual": "คู่มือ FFmpeg",
"installing": "กำลังตรวจสอบ…",
"installed": "ตรวจสอบและติดตั้งแล้ว",
"failed": "ดาวน์โหลดหรือตรวจสอบล้มเหลว การติดตั้งเดิมยังคงอยู่",
- "disclosure": "Motrix ตรวจสอบลายเซ็นของโครงการ ไบนารี Windows เหล่านี้ไม่มีลายเซ็น Authenticode สาธารณะ จึงอาจยังมีคำเตือนจาก Windows FFmpeg ใช้สัญญาอนุญาต GPL และมีข้อความสัญญาอนุญาตรวมอยู่ด้วย",
- "projectDisclosure": "ดาวน์โหลด FFmpeg รุ่นที่ Motrix สร้างอย่างเป็นทางการแยกต่างหาก ตรวจสอบลายเซ็น แล้วติดตั้งในโฟลเดอร์ข้อมูลของ Motrix FFmpeg ใช้สัญญาอนุญาต GPL โดยต้องปฏิบัติตามสัญญาอนุญาตที่แนบมาและเงื่อนไขของซอร์สโค้ดที่เกี่ยวข้อง",
- "macDisclosure": "macOS ตรวจสอบใบรับรอง Developer ID ที่กำหนดไว้และหลักฐานการรับรองออนไลน์ของ Apple โดยคงแอตทริบิวต์กักกันไฟล์จากอินเทอร์เน็ตไว้ และไม่ข้ามการป้องกันของระบบ",
+ "disclosure": "ตรวจสอบด้วยลายเซ็นโครงการ Motrix ไม่ใช่ Authenticode Windows อาจยังแสดงคำเตือน",
+ "projectDisclosure": "บิลด์ Motrix · GPL ตรวจสอบแล้วติดตั้งในโฟลเดอร์ข้อมูลของ Motrix",
+ "macDisclosure": "ตรวจสอบ Developer ID และการรับรองจาก Apple โดยยังเปิดการป้องกันของระบบไว้",
"progress": "ความคืบหน้าการดาวน์โหลด FFmpeg",
"bytes": "{{received}} / {{total}} ไบต์",
"directory": "โฟลเดอร์ที่ติดตั้ง: {{path}}",
diff --git a/src/shared/locales/tr.json b/src/shared/locales/tr.json
index c4800ec2..b570754c 100644
--- a/src/shared/locales/tr.json
+++ b/src/shared/locales/tr.json
@@ -1973,12 +1973,13 @@
"download": {
"action": "FFmpeg’i indir",
"verifyInstall": "İndir ve doğrula",
+ "manual": "FFmpeg kılavuzu",
"installing": "Doğrulanıyor…",
"installed": "Doğrulandı ve yüklendi.",
"failed": "İndirme veya doğrulama başarısız. Önceki kurulum korundu.",
- "disclosure": "Motrix kendi proje imzasını doğrular. Bu Windows ikili dosyalarının herkese açık bir Authenticode imzası yoktur; Windows uyarıları devam edebilir. FFmpeg GPL lisanslıdır; lisans metinleri dahildir.",
- "projectDisclosure": "Motrix’in resmi FFmpeg derlemesini ayrı olarak indirin, imzasını doğrulayın ve Motrix veri dizinine kurun. FFmpeg GPL lisanslıdır; birlikte gelen lisanslar ve ilgili kaynak kodun koşulları geçerlidir.",
- "macDisclosure": "macOS, sabitlenmiş Developer ID sertifikasını ve Apple’ın çevrimiçi noter onayı biletini doğrular. İnternet karantinası etkin kalır; sistem korumaları aşılmaz.",
+ "disclosure": "Authenticode değil, Motrix proje imzası doğrulanır. Windows uyarıları görünmeye devam edebilir.",
+ "projectDisclosure": "Motrix derlemesi · GPL. Doğrulanıp Motrix veri dizinine kurulur.",
+ "macDisclosure": "Developer ID ve Apple noter onayı kontrol edilir. Sistem korumaları açık kalır.",
"progress": "FFmpeg indirme ilerlemesi",
"bytes": "{{received}} / {{total}} bayt",
"directory": "Kurulum dizini: {{path}}",
diff --git a/src/shared/locales/uk.json b/src/shared/locales/uk.json
index e7e4a6e8..e6b6720f 100644
--- a/src/shared/locales/uk.json
+++ b/src/shared/locales/uk.json
@@ -2430,12 +2430,13 @@
"download": {
"action": "Завантажити FFmpeg",
"verifyInstall": "Завантажити й перевірити",
+ "manual": "Посібник FFmpeg",
"installing": "Перевірка…",
"installed": "Перевірено й установлено.",
"failed": "Не вдалося завантажити або перевірити файли. Попередню інсталяцію збережено.",
- "disclosure": "Motrix перевіряє підпис свого проєкту. Ці виконувані файли для Windows не мають публічного підпису Authenticode; попередження Windows можуть зберігатися. FFmpeg поширюється за ліцензією GPL; тексти ліцензій включено.",
- "projectDisclosure": "Завантажте офіційну збірку FFmpeg від Motrix окремо, перевірте підпис і встановіть її в каталог даних Motrix. FFmpeg поширюється за GPL; застосовуються додані ліцензії та відповідні вихідні тексти.",
- "macDisclosure": "macOS перевіряє закріплений сертифікат Developer ID та онлайн-квиток нотаріального засвідчення Apple. Інтернет-карантин залишається ввімкненим; захист системи не обходиться.",
+ "disclosure": "Перевіряється підпис проєкту Motrix, не Authenticode. Windows може й надалі показувати попередження.",
+ "projectDisclosure": "Збірка Motrix · GPL. Перевіряється та встановлюється в каталог даних Motrix.",
+ "macDisclosure": "Перевіряються Developer ID і нотаріальне засвідчення. Захист системи залишається ввімкненим.",
"progress": "Перебіг завантаження FFmpeg",
"bytes": "{{received}} / {{total}} байтів",
"directory": "Каталог встановлення: {{path}}",
diff --git a/src/shared/locales/vi.json b/src/shared/locales/vi.json
index f2f8f363..f09a81d6 100644
--- a/src/shared/locales/vi.json
+++ b/src/shared/locales/vi.json
@@ -1959,12 +1959,13 @@
"download": {
"action": "Tải FFmpeg",
"verifyInstall": "Tải xuống và xác minh",
+ "manual": "Hướng dẫn FFmpeg",
"installing": "Đang xác minh…",
"installed": "Đã xác minh và cài đặt.",
"failed": "Tải xuống hoặc xác minh thất bại. Bản cài đặt trước đó được giữ nguyên.",
- "disclosure": "Motrix xác minh chữ ký của dự án. Các tệp nhị phân Windows này không có chữ ký Authenticode công khai; cảnh báo của Windows có thể vẫn xuất hiện. FFmpeg được cấp phép theo GPL; văn bản giấy phép được đính kèm.",
- "projectDisclosure": "Tải riêng bản FFmpeg chính thức do Motrix biên dịch, xác minh chữ ký rồi cài đặt vào thư mục dữ liệu của Motrix. FFmpeg dùng giấy phép GPL; các giấy phép đi kèm và điều khoản của mã nguồn tương ứng được áp dụng.",
- "macDisclosure": "macOS xác minh chứng chỉ Developer ID đã được ghim và phiếu công chứng trực tuyến của Apple. Thuộc tính cách ly Internet vẫn được giữ; các biện pháp bảo vệ hệ thống không bị bỏ qua.",
+ "disclosure": "Xác minh bằng chữ ký dự án Motrix, không phải Authenticode. Windows vẫn có thể hiện cảnh báo.",
+ "projectDisclosure": "Bản dựng Motrix · GPL. Được xác minh và cài vào thư mục dữ liệu Motrix.",
+ "macDisclosure": "Kiểm tra Developer ID và công chứng Apple. Các biện pháp bảo vệ hệ thống vẫn được bật.",
"progress": "Tiến trình tải FFmpeg",
"bytes": "{{received}} / {{total}} byte",
"directory": "Thư mục cài đặt: {{path}}",
diff --git a/src/shared/locales/zh-CN.json b/src/shared/locales/zh-CN.json
index 88b4af67..5c002382 100644
--- a/src/shared/locales/zh-CN.json
+++ b/src/shared/locales/zh-CN.json
@@ -1959,12 +1959,13 @@
"download": {
"action": "下载 FFmpeg",
"verifyInstall": "下载并验证",
+ "manual": "FFmpeg 手册",
"installing": "正在验证…",
"installed": "已验证并安装。",
"failed": "下载或验证失败,已保留原有安装。",
- "disclosure": "Motrix 会校验项目签名。这些 Windows 可执行文件没有公共 Authenticode 签名,系统仍可能显示安全警告。FFmpeg 按 GPL 分发,附带许可证文本。",
- "projectDisclosure": "单独下载 Motrix 官方构建的 FFmpeg,校验签名后安装到 Motrix 数据目录。FFmpeg 按 GPL 分发,请遵循随附许可证及对应源码的使用条款。",
- "macDisclosure": "macOS 会验证固定的 Developer ID 证书及 Apple 在线公证凭据。保留互联网下载文件的隔离属性,不绕过系统保护。",
+ "disclosure": "使用 Motrix 项目签名验证,未采用 Authenticode 签名。Windows 仍可能弹出安全提示。",
+ "projectDisclosure": "Motrix 构建 · GPL。校验后安装到 Motrix 数据目录。",
+ "macDisclosure": "验证 Developer ID 签名和公证,保留系统安全保护。",
"progress": "FFmpeg 下载进度",
"bytes": "{{received}} / {{total}} 字节",
"directory": "安装目录:{{path}}",
diff --git a/src/shared/locales/zh-TW.json b/src/shared/locales/zh-TW.json
index 43d6d4fe..222b036d 100644
--- a/src/shared/locales/zh-TW.json
+++ b/src/shared/locales/zh-TW.json
@@ -1959,12 +1959,13 @@
"download": {
"action": "下載 FFmpeg",
"verifyInstall": "下載並驗證",
+ "manual": "FFmpeg 手冊",
"installing": "正在驗證…",
"installed": "已驗證並安裝。",
"failed": "下載或驗證失敗,已保留原有安裝。",
- "disclosure": "Motrix 會驗證專案簽章。這些 Windows 執行檔沒有公共 Authenticode 簽章,系統仍可能顯示安全警告。FFmpeg 依 GPL 散布,附帶授權條款。",
- "projectDisclosure": "單獨下載 Motrix 官方建置的 FFmpeg,驗證簽章後安裝到 Motrix 資料目錄。FFmpeg 依 GPL 散布,請遵循隨附授權條款及對應原始碼的使用條款。",
- "macDisclosure": "macOS 會驗證固定的 Developer ID 憑證及 Apple 線上公證憑據。保留網際網路下載檔案的隔離屬性,不略過系統保護。",
+ "disclosure": "使用 Motrix 專案簽章驗證,未採用 Authenticode 簽章。Windows 仍可能顯示安全提示。",
+ "projectDisclosure": "Motrix 組建 · GPL。驗證後安裝至 Motrix 資料目錄。",
+ "macDisclosure": "驗證 Developer ID 簽章及公證,保留系統安全保護。",
"progress": "FFmpeg 下載進度",
"bytes": "{{received}} / {{total}} 位元組",
"directory": "安裝目錄:{{path}}",
diff --git a/tests/ffmpeg-public-release.test.ts b/tests/ffmpeg-public-release.test.ts
index 7885108a..5e4a441a 100644
--- a/tests/ffmpeg-public-release.test.ts
+++ b/tests/ffmpeg-public-release.test.ts
@@ -67,6 +67,7 @@ async function checkedInstallation(
expect(directory).toBe(
path.join(
userDataDir,
+ 'binaries',
'ffmpeg-verified',
'releases',
`${verified.manifestHash}-${platform}-${arch}`
@@ -232,6 +233,7 @@ describe.skipIf(!enabled || process.platform !== 'darwin')(
)
const pointer = path.join(
userDataDir,
+ 'binaries',
'ffmpeg-verified',
'current.json'
)