Rename Cargo crate to open_pencil, binary to OpenPencil

Fixes macOS Dock showing 'open-pencil-app' instead of 'OpenPencil'.
This commit is contained in:
Danila Poyarkov 2026-03-01 02:42:12 +03:00
parent faf7ba6387
commit f7d1d59dc1
3 changed files with 8 additions and 7 deletions

2
desktop/Cargo.lock generated
View file

@ -2356,7 +2356,7 @@ dependencies = [
]
[[package]]
name = "open-pencil-app"
name = "open_pencil"
version = "0.1.0"
dependencies = [
"serde",

View file

@ -1,5 +1,5 @@
[package]
name = "open-pencil-app"
name = "open_pencil"
version = "0.1.0"
description = "A Tauri App"
authors = ["you"]
@ -7,11 +7,12 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[[bin]]
name = "OpenPencil"
path = "src/main.rs"
[lib]
# The `_lib` suffix may seem redundant but it is necessary
# to make the lib name unique and wouldn't conflict with the bin name.
# This seems to be only an issue on Windows, see https://github.com/rust-lang/cargo/issues/8519
name = "open_pencil_app_lib"
name = "open_pencil_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]

View file

@ -2,5 +2,5 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
open_pencil_app_lib::run()
open_pencil_lib::run()
}