mirror of
https://github.com/storytold/craft-launcher.git
synced 2026-11-17 23:46:30 +00:00
* feat(install): choose where Craft apps are installed Settings gets a default install folder, and a fresh install asks for the app's folder (prefilled with the default). Updates stay beside the copy they replace. Works for MSI (INSTALLFOLDER), DMG bundles, and AppImages; on Linux a custom folder means AppImage. Flatpak and the web build keep the system location and skip the prompt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(windows): integrate portable installs with custom locations * fix(install): ask before writing over something already in the install folder Staging used a predictable `.<name>.partial` path beside the destination, so a file the user kept under that name could be overwritten (AppImage) or deleted (macOS). Stage in a fresh private folder instead. A new install whose destination already exists now stops before downloading and asks "Replace what's there?". Replace installs over it: the AppImage or .app is swapped in, a portable install writes over same-named files only, and the MSI installs into the existing folder. Cancel leaves everything as it was. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(install): a planted .partial symlink can't redirect AppImage staging Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Skyfuller1303 <skyfullerdesign@gmail.com>
69 lines
3.0 KiB
TOML
69 lines
3.0 KiB
TOML
[package]
|
|
name = "artcraft-launcher"
|
|
description = "ArtCraft Launcher: install, update and open the Craft App Suite"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
rust-version.workspace = true
|
|
default-run = "artcraft-launcher"
|
|
build = "build.rs"
|
|
publish = false
|
|
|
|
[lints]
|
|
workspace = true
|
|
|
|
[features]
|
|
# Development only: install from `cargo xtask local serve` (see the README).
|
|
local-mirror = ["artcraft-launcher-native/local-mirror"]
|
|
|
|
[dependencies]
|
|
artcraft-launcher-core = { workspace = true }
|
|
artcraft-launcher-ui-egui = { workspace = true }
|
|
artcraft-launcher-native = { workspace = true }
|
|
eframe = { workspace = true, features = ["default_fonts", "wgpu", "accesskit", "wayland", "x11", "persistence", "links"] }
|
|
egui = { workspace = true }
|
|
log = { workspace = true }
|
|
env_logger = { version = "0.11", default-features = false, features = ["auto-color", "humantime"] }
|
|
image = { version = "0.25", default-features = false, features = ["png"] }
|
|
notify-rust = "4"
|
|
# Read and write eframe's settings file while there is no window (settings_file.rs). Already in
|
|
# Cargo.lock through eframe's "persistence" feature.
|
|
ron = "0.12.2"
|
|
serde = { workspace = true }
|
|
|
|
[target.'cfg(target_os = "linux")'.dependencies]
|
|
zbus = "5"
|
|
|
|
# The tray (menu bar) icon. On Linux and the BSDs the StatusNotifierItem backend talks D-Bus
|
|
# directly, so no GTK or libappindicator is needed.
|
|
[target.'cfg(any(target_os = "macos", target_os = "windows"))'.dependencies]
|
|
tray-icon = "0.25"
|
|
|
|
# macOS only: which desktop (Space) the window shows on (spaces.rs) and the "Reduce motion"
|
|
# setting (motion.rs). Safe AppKit calls only, and already in Cargo.lock through winit and
|
|
# tray-icon; pinned exactly to those versions.
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
objc2 = "=0.6.5"
|
|
objc2-foundation = { version = "=0.3.2", default-features = false, features = ["std", "NSArray", "NSEnumerator"] }
|
|
objc2-app-kit = { version = "=0.3.2", default-features = false, features = ["std", "NSAccessibility", "NSApplication", "NSResponder", "NSWindow", "NSWorkspace"] }
|
|
|
|
# Windows only: the "Animation effects" setting (motion.rs). Already in Cargo.lock through
|
|
# artcraft-launcher-native.
|
|
[target.'cfg(target_os = "windows")'.dependencies]
|
|
winreg = "0.55"
|
|
|
|
# Linux and the BSDs: the desktop's animations setting, from its settings portal (motion.rs).
|
|
# Already in Cargo.lock through tray-icon and notify-rust.
|
|
[target.'cfg(all(unix, not(target_os = "macos")))'.dependencies]
|
|
zbus = { version = "5", default-features = false, features = ["async-io", "blocking-api"] }
|
|
|
|
[target.'cfg(any(target_os = "linux", target_os = "freebsd", target_os = "openbsd", target_os = "netbsd", target_os = "dragonfly"))'.dependencies]
|
|
tray-icon = { version = "0.25", default-features = false, features = ["ksni"] }
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
|
|
rfd = { version = "=0.17.2", default-features = false, features = ["xdg-portal", "wayland"] }
|
|
|
|
[build-dependencies]
|
|
# Icon + VERSIONINFO for artcraft-launcher.exe; build.rs only uses it when targeting Windows.
|
|
winresource = "0.1"
|