style: fmt rust code
This commit is contained in:
@@ -30,7 +30,7 @@ pub fn get_window(app: &mut App, config: PakeConfig, _data_dir: PathBuf) -> Wind
|
||||
.initialization_script(include_str!("../inject/component.js"))
|
||||
.initialization_script(include_str!("../inject/event.js"))
|
||||
.initialization_script(include_str!("../inject/style.js"))
|
||||
.initialization_script(include_str!("../inject/_INJECT_.js")); //Very annoying, otherwise dragging files to the window will not work.
|
||||
.initialization_script(include_str!("../inject/custom.js")); //Very annoying, otherwise dragging files to the window will not work.
|
||||
|
||||
#[cfg(target_os = "macos")]
|
||||
{
|
||||
|
||||
0
src-tauri/src/inject/_INJECT_.js
vendored
0
src-tauri/src/inject/_INJECT_.js
vendored
2
src-tauri/src/inject/custom.js
vendored
Normal file
2
src-tauri/src/inject/custom.js
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
// This file is used to merge the injected external js and css files
|
||||
// and you can also directly add script files that you want to attach to the application in this fil
|
||||
@@ -5,8 +5,8 @@ use tauri::{api, Config, Window};
|
||||
|
||||
pub fn get_pake_config() -> (PakeConfig, Config) {
|
||||
#[cfg(feature = "cli-build")]
|
||||
let pake_config: PakeConfig =
|
||||
serde_json::from_str(include_str!("../.pake/pake.json")).expect("Failed to parse pake config");
|
||||
let pake_config: PakeConfig = serde_json::from_str(include_str!("../.pake/pake.json"))
|
||||
.expect("Failed to parse pake config");
|
||||
#[cfg(not(feature = "cli-build"))]
|
||||
let pake_config: PakeConfig =
|
||||
serde_json::from_str(include_str!("../pake.json")).expect("Failed to parse pake config");
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
{
|
||||
"package": {
|
||||
"productName": "WeRead",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"tauri": {
|
||||
"security": {
|
||||
"csp": null,
|
||||
@@ -29,10 +33,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"package": {
|
||||
"productName": "WeRead",
|
||||
"version": "1.0.0"
|
||||
},
|
||||
"build": {
|
||||
"withGlobalTauri": true,
|
||||
"devPath": "../dist",
|
||||
|
||||
@@ -1,10 +1,8 @@
|
||||
{
|
||||
"tauri": {
|
||||
"bundle": {
|
||||
"icon": [
|
||||
"icons/icon.icns"
|
||||
],
|
||||
"identifier": "com.pake.5b8ae9",
|
||||
"icon": ["icons/weread.icns"],
|
||||
"identifier": "com.pake.weread",
|
||||
"active": true,
|
||||
"category": "DeveloperTool",
|
||||
"copyright": "",
|
||||
|
||||
Reference in New Issue
Block a user