mirror of
https://github.com/nimbold/Firelink.git
synced 2026-08-18 07:13:13 +00:00
fix(window): enable custom titlebar controls
This commit is contained in:
@@ -5,6 +5,11 @@ All notable changes to Firelink will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [1.0.1] - 2026-07-04
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
- Fix custom window controls on Windows and Linux so close, minimize, and maximize work in packaged builds.
|
||||||
|
|
||||||
## [1.0.0] - 2026-07-04
|
## [1.0.0] - 2026-07-04
|
||||||
|
|
||||||
### Highlights
|
### Highlights
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
**A fast, focused desktop download manager for macOS, Windows, and Linux.**
|
**A fast, focused desktop download manager for macOS, Windows, and Linux.**
|
||||||
|
|
||||||
[](https://github.com/nimbold/Firelink/releases)
|
[](https://github.com/nimbold/Firelink/releases)
|
||||||
[](#platforms)
|
[](#platforms)
|
||||||
[](#platforms)
|
[](#platforms)
|
||||||
[](#platforms)
|
[](#platforms)
|
||||||
|
|||||||
Generated
+2
-2
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "firelink",
|
"name": "firelink",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "firelink",
|
"name": "firelink",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@formkit/auto-animate": "^0.9.0",
|
"@formkit/auto-animate": "^0.9.0",
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "firelink",
|
"name": "firelink",
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "A fast cross-platform desktop download manager powered by Rust, Tauri, React, aria2, and yt-dlp.",
|
"description": "A fast cross-platform desktop download manager powered by Rust, Tauri, React, aria2, and yt-dlp.",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"homepage": "https://github.com/nimbold/Firelink",
|
"homepage": "https://github.com/nimbold/Firelink",
|
||||||
|
|||||||
@@ -0,0 +1,26 @@
|
|||||||
|
import assert from 'node:assert/strict';
|
||||||
|
import fs from 'node:fs';
|
||||||
|
import test from 'node:test';
|
||||||
|
|
||||||
|
const capability = JSON.parse(fs.readFileSync('src-tauri/capabilities/default.json', 'utf8'));
|
||||||
|
const permissions = new Set(capability.permissions);
|
||||||
|
|
||||||
|
test('custom window controls have required Tauri permissions', () => {
|
||||||
|
const windowControls = fs.readFileSync('src/components/WindowControls.tsx', 'utf8');
|
||||||
|
const requiredPermissions = new Map([
|
||||||
|
['.close()', 'core:window:allow-close'],
|
||||||
|
['.minimize()', 'core:window:allow-minimize'],
|
||||||
|
['.startDragging()', 'core:window:allow-start-dragging'],
|
||||||
|
['.toggleMaximize()', 'core:window:allow-toggle-maximize'],
|
||||||
|
]);
|
||||||
|
|
||||||
|
for (const [apiCall, permission] of requiredPermissions) {
|
||||||
|
if (windowControls.includes(apiCall)) {
|
||||||
|
assert.equal(
|
||||||
|
permissions.has(permission),
|
||||||
|
true,
|
||||||
|
`${apiCall} requires ${permission} in src-tauri/capabilities/default.json`
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
});
|
||||||
Generated
+1
-1
@@ -1310,7 +1310,7 @@ checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "firelink"
|
name = "firelink"
|
||||||
version = "1.0.0"
|
version = "1.0.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-trait",
|
"async-trait",
|
||||||
"axum",
|
"axum",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "firelink"
|
name = "firelink"
|
||||||
version = "1.0.0"
|
version = "1.0.1"
|
||||||
description = "A fast cross-platform desktop download manager powered by Rust and Tauri"
|
description = "A fast cross-platform desktop download manager powered by Rust and Tauri"
|
||||||
authors = ["NimBold"]
|
authors = ["NimBold"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|||||||
@@ -5,7 +5,10 @@
|
|||||||
"windows": ["main"],
|
"windows": ["main"],
|
||||||
"permissions": [
|
"permissions": [
|
||||||
"core:default",
|
"core:default",
|
||||||
|
"core:window:allow-close",
|
||||||
|
"core:window:allow-minimize",
|
||||||
"core:window:allow-start-dragging",
|
"core:window:allow-start-dragging",
|
||||||
|
"core:window:allow-toggle-maximize",
|
||||||
"opener:default",
|
"opener:default",
|
||||||
"dialog:default",
|
"dialog:default",
|
||||||
"log:default",
|
"log:default",
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"$schema": "https://schema.tauri.app/config/2",
|
"$schema": "https://schema.tauri.app/config/2",
|
||||||
"productName": "Firelink",
|
"productName": "Firelink",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"identifier": "com.nimbold.firelink",
|
"identifier": "com.nimbold.firelink",
|
||||||
"build": {
|
"build": {
|
||||||
"beforeDevCommand": "node scripts/stage-engines.js && npm run dev",
|
"beforeDevCommand": "node scripts/stage-engines.js && npm run dev",
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ const [engineStatus, setEngineStatus] = useState<EngineStatusItem[] | null>(null
|
|||||||
const [expandedEngine, setExpandedEngine] = useState<string | null>(null);
|
const [expandedEngine, setExpandedEngine] = useState<string | null>(null);
|
||||||
const [isRecheckingEngines, setIsRecheckingEngines] = useState(false);
|
const [isRecheckingEngines, setIsRecheckingEngines] = useState(false);
|
||||||
const engineRunId = useRef(0);
|
const engineRunId = useRef(0);
|
||||||
const [appVersion, setAppVersion] = useState('1.0.0');
|
const [appVersion, setAppVersion] = useState('1.0.1');
|
||||||
const [extensionServerPort, setExtensionServerPort] = useState<number | null>(null);
|
const [extensionServerPort, setExtensionServerPort] = useState<number | null>(null);
|
||||||
|
|
||||||
// Local state for adding site login
|
// Local state for adding site login
|
||||||
|
|||||||
Reference in New Issue
Block a user