pake-cli 3.2.0-beta1 → 3.2.0-beta11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/dist/cli.js +102 -19
  2. package/dist/dev.js +276 -72
  3. package/dist/dev.js.map +1 -1
  4. package/package.json +10 -7
  5. package/src-tauri/.cargo/config.toml +19 -4
  6. package/src-tauri/.pake/icons/githubcustomtraypng.icns +0 -0
  7. package/src-tauri/.pake/icons/githubcustomtraytest.icns +0 -0
  8. package/src-tauri/.pake/icons/githubsystemtraytest.icns +0 -0
  9. package/src-tauri/.pake/icons/testfix.icns +0 -0
  10. package/src-tauri/.pake/icons/twi.icns +0 -0
  11. package/src-tauri/.pake/icons/twitter.icns +0 -0
  12. package/src-tauri/.pake/icons/twitter1.icns +0 -0
  13. package/src-tauri/.pake/icons/twitter3.icns +0 -0
  14. package/src-tauri/.pake/icons/twitter4.icns +0 -0
  15. package/src-tauri/.pake/icons/twitter5.icns +0 -0
  16. package/src-tauri/.pake/icons/twitterapp.icns +0 -0
  17. package/src-tauri/.pake/icons/twittercustomtray.icns +0 -0
  18. package/src-tauri/.pake/icons/twitterfinal.icns +0 -0
  19. package/src-tauri/.pake/icons/twitteroptimized.icns +0 -0
  20. package/src-tauri/.pake/icons/twittertest.icns +0 -0
  21. package/src-tauri/.pake/icons/wk.icns +0 -0
  22. package/src-tauri/.pake/icons/wk1.icns +0 -0
  23. package/src-tauri/.pake/pake.json +33 -0
  24. package/src-tauri/.pake/png/githubcustomtraypng.png +0 -0
  25. package/src-tauri/.pake/png/twi_tray.png +0 -0
  26. package/src-tauri/.pake/png/twitter5_tray.png +0 -0
  27. package/src-tauri/.pake/png/twittercustomtray.png +0 -0
  28. package/src-tauri/.pake/png/twitterfinal_tray.png +0 -0
  29. package/src-tauri/.pake/png/twitteroptimized_tray.png +0 -0
  30. package/src-tauri/.pake/tauri.conf.json +24 -0
  31. package/src-tauri/.pake/tauri.linux.conf.json +16 -0
  32. package/src-tauri/.pake/tauri.macos.conf.json +15 -0
  33. package/src-tauri/.pake/tauri.windows.conf.json +15 -0
  34. package/src-tauri/gen/schemas/acl-manifests.json +1 -1
  35. package/src-tauri/gen/schemas/desktop-schema.json +0 -198
  36. package/src-tauri/gen/schemas/macOS-schema.json +0 -198
  37. package/src-tauri/pake.json +2 -1
  38. package/src-tauri/src/app/config.rs +2 -0
  39. package/src-tauri/src/app/window.rs +11 -7
  40. package/src-tauri/tauri.linux.conf.json +2 -2
  41. package/cli.js +0 -2
@@ -2552,204 +2552,6 @@
2552
2552
  "const": "http:deny-fetch-send",
2553
2553
  "markdownDescription": "Denies the fetch_send command without any pre-configured scope."
2554
2554
  },
2555
- {
2556
- "description": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n\n#### This default permission set includes:\n\n- `allow-is-permission-granted`\n- `allow-request-permission`\n- `allow-notify`\n- `allow-register-action-types`\n- `allow-register-listener`\n- `allow-cancel`\n- `allow-get-pending`\n- `allow-remove-active`\n- `allow-get-active`\n- `allow-check-permissions`\n- `allow-show`\n- `allow-batch`\n- `allow-list-channels`\n- `allow-delete-channel`\n- `allow-create-channel`\n- `allow-permission-state`",
2557
- "type": "string",
2558
- "const": "notification:default",
2559
- "markdownDescription": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n\n#### This default permission set includes:\n\n- `allow-is-permission-granted`\n- `allow-request-permission`\n- `allow-notify`\n- `allow-register-action-types`\n- `allow-register-listener`\n- `allow-cancel`\n- `allow-get-pending`\n- `allow-remove-active`\n- `allow-get-active`\n- `allow-check-permissions`\n- `allow-show`\n- `allow-batch`\n- `allow-list-channels`\n- `allow-delete-channel`\n- `allow-create-channel`\n- `allow-permission-state`"
2560
- },
2561
- {
2562
- "description": "Enables the batch command without any pre-configured scope.",
2563
- "type": "string",
2564
- "const": "notification:allow-batch",
2565
- "markdownDescription": "Enables the batch command without any pre-configured scope."
2566
- },
2567
- {
2568
- "description": "Enables the cancel command without any pre-configured scope.",
2569
- "type": "string",
2570
- "const": "notification:allow-cancel",
2571
- "markdownDescription": "Enables the cancel command without any pre-configured scope."
2572
- },
2573
- {
2574
- "description": "Enables the check_permissions command without any pre-configured scope.",
2575
- "type": "string",
2576
- "const": "notification:allow-check-permissions",
2577
- "markdownDescription": "Enables the check_permissions command without any pre-configured scope."
2578
- },
2579
- {
2580
- "description": "Enables the create_channel command without any pre-configured scope.",
2581
- "type": "string",
2582
- "const": "notification:allow-create-channel",
2583
- "markdownDescription": "Enables the create_channel command without any pre-configured scope."
2584
- },
2585
- {
2586
- "description": "Enables the delete_channel command without any pre-configured scope.",
2587
- "type": "string",
2588
- "const": "notification:allow-delete-channel",
2589
- "markdownDescription": "Enables the delete_channel command without any pre-configured scope."
2590
- },
2591
- {
2592
- "description": "Enables the get_active command without any pre-configured scope.",
2593
- "type": "string",
2594
- "const": "notification:allow-get-active",
2595
- "markdownDescription": "Enables the get_active command without any pre-configured scope."
2596
- },
2597
- {
2598
- "description": "Enables the get_pending command without any pre-configured scope.",
2599
- "type": "string",
2600
- "const": "notification:allow-get-pending",
2601
- "markdownDescription": "Enables the get_pending command without any pre-configured scope."
2602
- },
2603
- {
2604
- "description": "Enables the is_permission_granted command without any pre-configured scope.",
2605
- "type": "string",
2606
- "const": "notification:allow-is-permission-granted",
2607
- "markdownDescription": "Enables the is_permission_granted command without any pre-configured scope."
2608
- },
2609
- {
2610
- "description": "Enables the list_channels command without any pre-configured scope.",
2611
- "type": "string",
2612
- "const": "notification:allow-list-channels",
2613
- "markdownDescription": "Enables the list_channels command without any pre-configured scope."
2614
- },
2615
- {
2616
- "description": "Enables the notify command without any pre-configured scope.",
2617
- "type": "string",
2618
- "const": "notification:allow-notify",
2619
- "markdownDescription": "Enables the notify command without any pre-configured scope."
2620
- },
2621
- {
2622
- "description": "Enables the permission_state command without any pre-configured scope.",
2623
- "type": "string",
2624
- "const": "notification:allow-permission-state",
2625
- "markdownDescription": "Enables the permission_state command without any pre-configured scope."
2626
- },
2627
- {
2628
- "description": "Enables the register_action_types command without any pre-configured scope.",
2629
- "type": "string",
2630
- "const": "notification:allow-register-action-types",
2631
- "markdownDescription": "Enables the register_action_types command without any pre-configured scope."
2632
- },
2633
- {
2634
- "description": "Enables the register_listener command without any pre-configured scope.",
2635
- "type": "string",
2636
- "const": "notification:allow-register-listener",
2637
- "markdownDescription": "Enables the register_listener command without any pre-configured scope."
2638
- },
2639
- {
2640
- "description": "Enables the remove_active command without any pre-configured scope.",
2641
- "type": "string",
2642
- "const": "notification:allow-remove-active",
2643
- "markdownDescription": "Enables the remove_active command without any pre-configured scope."
2644
- },
2645
- {
2646
- "description": "Enables the request_permission command without any pre-configured scope.",
2647
- "type": "string",
2648
- "const": "notification:allow-request-permission",
2649
- "markdownDescription": "Enables the request_permission command without any pre-configured scope."
2650
- },
2651
- {
2652
- "description": "Enables the show command without any pre-configured scope.",
2653
- "type": "string",
2654
- "const": "notification:allow-show",
2655
- "markdownDescription": "Enables the show command without any pre-configured scope."
2656
- },
2657
- {
2658
- "description": "Denies the batch command without any pre-configured scope.",
2659
- "type": "string",
2660
- "const": "notification:deny-batch",
2661
- "markdownDescription": "Denies the batch command without any pre-configured scope."
2662
- },
2663
- {
2664
- "description": "Denies the cancel command without any pre-configured scope.",
2665
- "type": "string",
2666
- "const": "notification:deny-cancel",
2667
- "markdownDescription": "Denies the cancel command without any pre-configured scope."
2668
- },
2669
- {
2670
- "description": "Denies the check_permissions command without any pre-configured scope.",
2671
- "type": "string",
2672
- "const": "notification:deny-check-permissions",
2673
- "markdownDescription": "Denies the check_permissions command without any pre-configured scope."
2674
- },
2675
- {
2676
- "description": "Denies the create_channel command without any pre-configured scope.",
2677
- "type": "string",
2678
- "const": "notification:deny-create-channel",
2679
- "markdownDescription": "Denies the create_channel command without any pre-configured scope."
2680
- },
2681
- {
2682
- "description": "Denies the delete_channel command without any pre-configured scope.",
2683
- "type": "string",
2684
- "const": "notification:deny-delete-channel",
2685
- "markdownDescription": "Denies the delete_channel command without any pre-configured scope."
2686
- },
2687
- {
2688
- "description": "Denies the get_active command without any pre-configured scope.",
2689
- "type": "string",
2690
- "const": "notification:deny-get-active",
2691
- "markdownDescription": "Denies the get_active command without any pre-configured scope."
2692
- },
2693
- {
2694
- "description": "Denies the get_pending command without any pre-configured scope.",
2695
- "type": "string",
2696
- "const": "notification:deny-get-pending",
2697
- "markdownDescription": "Denies the get_pending command without any pre-configured scope."
2698
- },
2699
- {
2700
- "description": "Denies the is_permission_granted command without any pre-configured scope.",
2701
- "type": "string",
2702
- "const": "notification:deny-is-permission-granted",
2703
- "markdownDescription": "Denies the is_permission_granted command without any pre-configured scope."
2704
- },
2705
- {
2706
- "description": "Denies the list_channels command without any pre-configured scope.",
2707
- "type": "string",
2708
- "const": "notification:deny-list-channels",
2709
- "markdownDescription": "Denies the list_channels command without any pre-configured scope."
2710
- },
2711
- {
2712
- "description": "Denies the notify command without any pre-configured scope.",
2713
- "type": "string",
2714
- "const": "notification:deny-notify",
2715
- "markdownDescription": "Denies the notify command without any pre-configured scope."
2716
- },
2717
- {
2718
- "description": "Denies the permission_state command without any pre-configured scope.",
2719
- "type": "string",
2720
- "const": "notification:deny-permission-state",
2721
- "markdownDescription": "Denies the permission_state command without any pre-configured scope."
2722
- },
2723
- {
2724
- "description": "Denies the register_action_types command without any pre-configured scope.",
2725
- "type": "string",
2726
- "const": "notification:deny-register-action-types",
2727
- "markdownDescription": "Denies the register_action_types command without any pre-configured scope."
2728
- },
2729
- {
2730
- "description": "Denies the register_listener command without any pre-configured scope.",
2731
- "type": "string",
2732
- "const": "notification:deny-register-listener",
2733
- "markdownDescription": "Denies the register_listener command without any pre-configured scope."
2734
- },
2735
- {
2736
- "description": "Denies the remove_active command without any pre-configured scope.",
2737
- "type": "string",
2738
- "const": "notification:deny-remove-active",
2739
- "markdownDescription": "Denies the remove_active command without any pre-configured scope."
2740
- },
2741
- {
2742
- "description": "Denies the request_permission command without any pre-configured scope.",
2743
- "type": "string",
2744
- "const": "notification:deny-request-permission",
2745
- "markdownDescription": "Denies the request_permission command without any pre-configured scope."
2746
- },
2747
- {
2748
- "description": "Denies the show command without any pre-configured scope.",
2749
- "type": "string",
2750
- "const": "notification:deny-show",
2751
- "markdownDescription": "Denies the show command without any pre-configured scope."
2752
- },
2753
2555
  {
2754
2556
  "description": "Enables the cancel command without any pre-configured scope.",
2755
2557
  "type": "string",
@@ -2552,204 +2552,6 @@
2552
2552
  "const": "http:deny-fetch-send",
2553
2553
  "markdownDescription": "Denies the fetch_send command without any pre-configured scope."
2554
2554
  },
2555
- {
2556
- "description": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n\n#### This default permission set includes:\n\n- `allow-is-permission-granted`\n- `allow-request-permission`\n- `allow-notify`\n- `allow-register-action-types`\n- `allow-register-listener`\n- `allow-cancel`\n- `allow-get-pending`\n- `allow-remove-active`\n- `allow-get-active`\n- `allow-check-permissions`\n- `allow-show`\n- `allow-batch`\n- `allow-list-channels`\n- `allow-delete-channel`\n- `allow-create-channel`\n- `allow-permission-state`",
2557
- "type": "string",
2558
- "const": "notification:default",
2559
- "markdownDescription": "This permission set configures which\nnotification features are by default exposed.\n\n#### Granted Permissions\n\nIt allows all notification related features.\n\n\n#### This default permission set includes:\n\n- `allow-is-permission-granted`\n- `allow-request-permission`\n- `allow-notify`\n- `allow-register-action-types`\n- `allow-register-listener`\n- `allow-cancel`\n- `allow-get-pending`\n- `allow-remove-active`\n- `allow-get-active`\n- `allow-check-permissions`\n- `allow-show`\n- `allow-batch`\n- `allow-list-channels`\n- `allow-delete-channel`\n- `allow-create-channel`\n- `allow-permission-state`"
2560
- },
2561
- {
2562
- "description": "Enables the batch command without any pre-configured scope.",
2563
- "type": "string",
2564
- "const": "notification:allow-batch",
2565
- "markdownDescription": "Enables the batch command without any pre-configured scope."
2566
- },
2567
- {
2568
- "description": "Enables the cancel command without any pre-configured scope.",
2569
- "type": "string",
2570
- "const": "notification:allow-cancel",
2571
- "markdownDescription": "Enables the cancel command without any pre-configured scope."
2572
- },
2573
- {
2574
- "description": "Enables the check_permissions command without any pre-configured scope.",
2575
- "type": "string",
2576
- "const": "notification:allow-check-permissions",
2577
- "markdownDescription": "Enables the check_permissions command without any pre-configured scope."
2578
- },
2579
- {
2580
- "description": "Enables the create_channel command without any pre-configured scope.",
2581
- "type": "string",
2582
- "const": "notification:allow-create-channel",
2583
- "markdownDescription": "Enables the create_channel command without any pre-configured scope."
2584
- },
2585
- {
2586
- "description": "Enables the delete_channel command without any pre-configured scope.",
2587
- "type": "string",
2588
- "const": "notification:allow-delete-channel",
2589
- "markdownDescription": "Enables the delete_channel command without any pre-configured scope."
2590
- },
2591
- {
2592
- "description": "Enables the get_active command without any pre-configured scope.",
2593
- "type": "string",
2594
- "const": "notification:allow-get-active",
2595
- "markdownDescription": "Enables the get_active command without any pre-configured scope."
2596
- },
2597
- {
2598
- "description": "Enables the get_pending command without any pre-configured scope.",
2599
- "type": "string",
2600
- "const": "notification:allow-get-pending",
2601
- "markdownDescription": "Enables the get_pending command without any pre-configured scope."
2602
- },
2603
- {
2604
- "description": "Enables the is_permission_granted command without any pre-configured scope.",
2605
- "type": "string",
2606
- "const": "notification:allow-is-permission-granted",
2607
- "markdownDescription": "Enables the is_permission_granted command without any pre-configured scope."
2608
- },
2609
- {
2610
- "description": "Enables the list_channels command without any pre-configured scope.",
2611
- "type": "string",
2612
- "const": "notification:allow-list-channels",
2613
- "markdownDescription": "Enables the list_channels command without any pre-configured scope."
2614
- },
2615
- {
2616
- "description": "Enables the notify command without any pre-configured scope.",
2617
- "type": "string",
2618
- "const": "notification:allow-notify",
2619
- "markdownDescription": "Enables the notify command without any pre-configured scope."
2620
- },
2621
- {
2622
- "description": "Enables the permission_state command without any pre-configured scope.",
2623
- "type": "string",
2624
- "const": "notification:allow-permission-state",
2625
- "markdownDescription": "Enables the permission_state command without any pre-configured scope."
2626
- },
2627
- {
2628
- "description": "Enables the register_action_types command without any pre-configured scope.",
2629
- "type": "string",
2630
- "const": "notification:allow-register-action-types",
2631
- "markdownDescription": "Enables the register_action_types command without any pre-configured scope."
2632
- },
2633
- {
2634
- "description": "Enables the register_listener command without any pre-configured scope.",
2635
- "type": "string",
2636
- "const": "notification:allow-register-listener",
2637
- "markdownDescription": "Enables the register_listener command without any pre-configured scope."
2638
- },
2639
- {
2640
- "description": "Enables the remove_active command without any pre-configured scope.",
2641
- "type": "string",
2642
- "const": "notification:allow-remove-active",
2643
- "markdownDescription": "Enables the remove_active command without any pre-configured scope."
2644
- },
2645
- {
2646
- "description": "Enables the request_permission command without any pre-configured scope.",
2647
- "type": "string",
2648
- "const": "notification:allow-request-permission",
2649
- "markdownDescription": "Enables the request_permission command without any pre-configured scope."
2650
- },
2651
- {
2652
- "description": "Enables the show command without any pre-configured scope.",
2653
- "type": "string",
2654
- "const": "notification:allow-show",
2655
- "markdownDescription": "Enables the show command without any pre-configured scope."
2656
- },
2657
- {
2658
- "description": "Denies the batch command without any pre-configured scope.",
2659
- "type": "string",
2660
- "const": "notification:deny-batch",
2661
- "markdownDescription": "Denies the batch command without any pre-configured scope."
2662
- },
2663
- {
2664
- "description": "Denies the cancel command without any pre-configured scope.",
2665
- "type": "string",
2666
- "const": "notification:deny-cancel",
2667
- "markdownDescription": "Denies the cancel command without any pre-configured scope."
2668
- },
2669
- {
2670
- "description": "Denies the check_permissions command without any pre-configured scope.",
2671
- "type": "string",
2672
- "const": "notification:deny-check-permissions",
2673
- "markdownDescription": "Denies the check_permissions command without any pre-configured scope."
2674
- },
2675
- {
2676
- "description": "Denies the create_channel command without any pre-configured scope.",
2677
- "type": "string",
2678
- "const": "notification:deny-create-channel",
2679
- "markdownDescription": "Denies the create_channel command without any pre-configured scope."
2680
- },
2681
- {
2682
- "description": "Denies the delete_channel command without any pre-configured scope.",
2683
- "type": "string",
2684
- "const": "notification:deny-delete-channel",
2685
- "markdownDescription": "Denies the delete_channel command without any pre-configured scope."
2686
- },
2687
- {
2688
- "description": "Denies the get_active command without any pre-configured scope.",
2689
- "type": "string",
2690
- "const": "notification:deny-get-active",
2691
- "markdownDescription": "Denies the get_active command without any pre-configured scope."
2692
- },
2693
- {
2694
- "description": "Denies the get_pending command without any pre-configured scope.",
2695
- "type": "string",
2696
- "const": "notification:deny-get-pending",
2697
- "markdownDescription": "Denies the get_pending command without any pre-configured scope."
2698
- },
2699
- {
2700
- "description": "Denies the is_permission_granted command without any pre-configured scope.",
2701
- "type": "string",
2702
- "const": "notification:deny-is-permission-granted",
2703
- "markdownDescription": "Denies the is_permission_granted command without any pre-configured scope."
2704
- },
2705
- {
2706
- "description": "Denies the list_channels command without any pre-configured scope.",
2707
- "type": "string",
2708
- "const": "notification:deny-list-channels",
2709
- "markdownDescription": "Denies the list_channels command without any pre-configured scope."
2710
- },
2711
- {
2712
- "description": "Denies the notify command without any pre-configured scope.",
2713
- "type": "string",
2714
- "const": "notification:deny-notify",
2715
- "markdownDescription": "Denies the notify command without any pre-configured scope."
2716
- },
2717
- {
2718
- "description": "Denies the permission_state command without any pre-configured scope.",
2719
- "type": "string",
2720
- "const": "notification:deny-permission-state",
2721
- "markdownDescription": "Denies the permission_state command without any pre-configured scope."
2722
- },
2723
- {
2724
- "description": "Denies the register_action_types command without any pre-configured scope.",
2725
- "type": "string",
2726
- "const": "notification:deny-register-action-types",
2727
- "markdownDescription": "Denies the register_action_types command without any pre-configured scope."
2728
- },
2729
- {
2730
- "description": "Denies the register_listener command without any pre-configured scope.",
2731
- "type": "string",
2732
- "const": "notification:deny-register-listener",
2733
- "markdownDescription": "Denies the register_listener command without any pre-configured scope."
2734
- },
2735
- {
2736
- "description": "Denies the remove_active command without any pre-configured scope.",
2737
- "type": "string",
2738
- "const": "notification:deny-remove-active",
2739
- "markdownDescription": "Denies the remove_active command without any pre-configured scope."
2740
- },
2741
- {
2742
- "description": "Denies the request_permission command without any pre-configured scope.",
2743
- "type": "string",
2744
- "const": "notification:deny-request-permission",
2745
- "markdownDescription": "Denies the request_permission command without any pre-configured scope."
2746
- },
2747
- {
2748
- "description": "Denies the show command without any pre-configured scope.",
2749
- "type": "string",
2750
- "const": "notification:deny-show",
2751
- "markdownDescription": "Denies the show command without any pre-configured scope."
2752
- },
2753
2555
  {
2754
2556
  "description": "Enables the cancel command without any pre-configured scope.",
2755
2557
  "type": "string",
@@ -12,7 +12,8 @@
12
12
  "dark_mode": false,
13
13
  "activation_shortcut": "",
14
14
  "disabled_web_shortcuts": false,
15
- "hide_on_close": true
15
+ "hide_on_close": true,
16
+ "incognito": false
16
17
  }
17
18
  ],
18
19
  "user_agent": {
@@ -14,6 +14,8 @@ pub struct WindowConfig {
14
14
  pub disabled_web_shortcuts: bool,
15
15
  pub activation_shortcut: String,
16
16
  pub hide_on_close: bool,
17
+ pub incognito: bool,
18
+ pub title: Option<String>,
17
19
  }
18
20
 
19
21
  #[derive(Debug, Serialize, Deserialize)]
@@ -6,9 +6,6 @@ use tauri::{App, Config, Url, WebviewUrl, WebviewWindow, WebviewWindowBuilder};
6
6
  #[cfg(target_os = "macos")]
7
7
  use tauri::{Theme, TitleBarStyle};
8
8
 
9
- #[cfg(target_os = "windows")]
10
- use tauri::Theme;
11
-
12
9
  pub fn set_window(app: &mut App, config: &PakeConfig, tauri_config: &Config) -> WebviewWindow {
13
10
  let package_name = tauri_config.clone().product_name.unwrap();
14
11
  let _data_dir = get_data_dir(app.handle(), package_name);
@@ -31,8 +28,14 @@ pub fn set_window(app: &mut App, config: &PakeConfig, tauri_config: &Config) ->
31
28
  serde_json::to_string(&window_config).unwrap()
32
29
  );
33
30
 
31
+ let window_title = window_config
32
+ .title
33
+ .as_ref()
34
+ .map(|t| t.as_str())
35
+ .unwrap_or("");
36
+
34
37
  let mut window_builder = WebviewWindowBuilder::new(app, "pake", url)
35
- .title("")
38
+ .title(window_title)
36
39
  .visible(false)
37
40
  .user_agent(user_agent)
38
41
  .resizable(window_config.resizable)
@@ -40,6 +43,7 @@ pub fn set_window(app: &mut App, config: &PakeConfig, tauri_config: &Config) ->
40
43
  .inner_size(window_config.width, window_config.height)
41
44
  .always_on_top(window_config.always_on_top)
42
45
  .disable_drag_drop_handler()
46
+ .incognito(window_config.incognito)
43
47
  .initialization_script(&config_script)
44
48
  .initialization_script(include_str!("../inject/component.js"))
45
49
  .initialization_script(include_str!("../inject/event.js"))
@@ -74,7 +78,7 @@ pub fn set_window(app: &mut App, config: &PakeConfig, tauri_config: &Config) ->
74
78
  window_builder = window_builder
75
79
  .data_directory(_data_dir)
76
80
  .title(app.package_info().name.clone());
77
-
81
+
78
82
  // Set theme to None for automatic system theme detection on Windows
79
83
  // This allows the window to respond to system theme changes automatically
80
84
  window_builder = window_builder.theme(None);
@@ -85,8 +89,8 @@ pub fn set_window(app: &mut App, config: &PakeConfig, tauri_config: &Config) ->
85
89
  window_builder = window_builder
86
90
  .data_directory(_data_dir)
87
91
  .title(app.package_info().name.clone());
88
-
89
- // Set theme to None for automatic system theme detection on Linux
92
+
93
+ // Set theme to None for automatic system theme detection on Linux
90
94
  // This allows the window to respond to system theme changes automatically
91
95
  window_builder = window_builder.theme(None);
92
96
  }
@@ -1,7 +1,7 @@
1
1
  {
2
- "productName": "we-read",
2
+ "productName": "weekly",
3
3
  "bundle": {
4
- "icon": ["png/weekly.png"],
4
+ "icon": ["png/weekly_512.png"],
5
5
  "active": true,
6
6
  "linux": {
7
7
  "deb": {
package/cli.js DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env node
2
- import './dist/cli.js';