mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-20 21:49:16 +00:00

* chore(desktop): configure publish workflow and update Tauri configuration * chore(ci): enable beta build on develop pull requests * chore(ci): add develop branch to CI workflow triggers * chore(ci): enable default platform builds for beta workflow
24 lines
1.3 KiB
Rust
24 lines
1.3 KiB
Rust
use base64::prelude::*;
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* Buildin Extension Identifiers */
|
|
/* -------------------------------------------------------------------------- */
|
|
pub const KUNKUN_CLIPBOARD_EXT_IDENTIFIER: &str = "sh.kunkun.ext.clipboard";
|
|
pub const KUNKUN_QUICK_LINKS_EXT_IDENTIFIER: &str = "sh.kunkun.ext.quick-links";
|
|
pub const KUNKUN_REMOTE_EXT_IDENTIFIER: &str = "sh.kunkun.ext.remote";
|
|
pub const KUNKUN_SCRIPT_CMD_EXT_IDENTIFIER: &str = "sh.kunkun.ext.script-cmd";
|
|
pub const KUNKUN_DEV_EXT_IDENTIFIER: &str = "sh.kunkun.ext.dev";
|
|
|
|
/* -------------------------------------------------------------------------- */
|
|
/* Kunkun Builtin Events */
|
|
/* -------------------------------------------------------------------------- */
|
|
pub const KUNKUN_REFRESH_WORKER_EXTENSION: &str = "kunkun://refresh-dev-extension";
|
|
|
|
pub static BASE64_SERVER_PUBLIC_KEY: &str = env!("BASE64_SERVER_PUBLIC_KEY");
|
|
pub static SERVER_PUBLIC_KEY: std::sync::LazyLock<Vec<u8>> = std::sync::LazyLock::new(|| {
|
|
BASE64_STANDARD
|
|
.decode(BASE64_SERVER_PUBLIC_KEY)
|
|
.expect("Failed to decode base64 encoded server public key")
|
|
});
|
|
pub static KUNKUN_PUBLISH: &str = env!("KUNKUN_PUBLISH");
|