Skip to content

Commit

Permalink
add macos frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Jan 26, 2024
1 parent 78c5899 commit 5f7498e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion desktop/src-tauri/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,11 @@ def clean():
with open(CONF, 'r') as f:
# webview_dll = TARGET / 'target/release/WebView2Loader.dll'
data = json.load(f)
data['tauri']['bundle']['resources'] = data['tauri']['bundle'].get("resources", []) + [Path(i).name for i in RESOURCES]
if sys.platform == 'win32':
data['tauri']['bundle']['resources'] = data['tauri']['bundle'].get("resources", []) + [Path(i).name for i in RESOURCES]
elif sys.platform == 'darwin':
data['tauri']['bundle']["macOS"] = {}
data['tauri']['bundle']["macOS"]['frameworks'] = [Path(i).name for i in RESOURCES]
with open(CONF, 'w') as f:
json.dump(data, f, indent=4)

Expand Down

0 comments on commit 5f7498e

Please sign in to comment.