Commit Graph

823 Commits

Author SHA1 Message Date
luisnquin
e01a55085d chore(update): beta @ x86_64 && aarch64 to 1.17.6b 2025-11-08 20:54:34 +00:00
Luis Quiñones
00fe630272 revert: "chore(update): beta @ x86_64 && aarch64 to 1.17.6b" (#162)
Closes https://github.com/0xc000022070/zen-browser-flake/issues/161.

This reverts commit 40598467ca.
2025-11-08 15:53:32 -05:00
luisnquin
5ba60c02a6 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1762573636 2025-11-08 04:22:35 +00:00
Luis Quiñones
e75282c59a ci: add workflow to update inputs every two weeks (#160) 2025-11-07 22:50:36 -05:00
Luis Quiñones
17d6337643 ci: improve code quality workflow (#159) 2025-11-07 22:40:52 -05:00
luisnquin
40598467ca chore(update): beta @ x86_64 && aarch64 to 1.17.6b 2025-11-07 18:28:27 +00:00
recallmenot
5499dafb94 readme: add example script to simplify finding extension name and id (#158) 2025-11-07 09:17:16 -05:00
luisnquin
e774c64217 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1762493479 2025-11-07 06:31:06 +00:00
Luis Quiñones
45b88a529b revert: "fix(package): ensure both bin symlinks point directly to the zen bina…" (#157)
Closes https://github.com/0xc000022070/zen-browser-flake/issues/156.

This reverts commit dd340331f6.
2025-11-06 21:35:08 -05:00
luisnquin
a3a22c5ad4 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1762402939 2025-11-06 04:26:56 +00:00
Luis Quiñones
dd340331f6 fix(package): ensure both bin symlinks point directly to the zen binary (#155)
Related to https://github.com/0xc000022070/zen-browser-flake/issues/63.
2025-11-05 21:30:34 -05:00
Luis Quiñones
03a32e6af0 readme: add note for macOS users about policies option (#154)
Closes https://github.com/0xc000022070/zen-browser-flake/issues/104.

Huge thanks to @retX0 and @emonadeo for their help!
2025-11-05 21:18:30 -05:00
Luis Quiñones
fe8ae759ef refactor(hm-module): remove unused var (#153) 2025-11-05 20:54:25 -05:00
Luis Quiñones
8c6c037d72 flake-update: nixpkgs & home-manager @ latest git (#152)
Reason: https://github.com/0xc000022070/zen-browser-flake/issues/104#issuecomment-3492408428.
2025-11-05 12:28:12 -05:00
Xin Huang
21a72764b6 fix(darwin): use stable app path to prevent installs.ini accumulation (#150)
* fix: Add policies.json support for macOS (Darwin)

Previously, policies.json was only installed for Linux builds,
causing browser policies (including ExtensionSettings) to be
ignored on macOS. This resulted in extensions not being automatically
installed on macOS systems.

This fix adds the policies.json installation to the Darwin install
phase, mirroring the Linux behavior and ensuring policy enforcement
works correctly on macOS.

Fixes extension auto-installation and other policy-based features on macOS.

* fix(darwin): use stable app path to prevent installs.ini accumulation

Problem:
- Zen Browser creates install IDs based on the application path
- Wrapper script uses Nix store path which changes on every rebuild
- Each new path creates a new install ID entry in installs.ini
- Results in: multiple Dock icons, empty profiles, data loss

Solution:
- Use the stable Home Manager symlink path (~/.../Home Manager Apps/...)
- This path remains constant across Nix rebuilds
- Zen Browser sees the same path every time, reuses existing install ID
- Falls back to store path if symlink doesn't exist yet

Benefits:
- No activation scripts or workarounds needed
- Fixes root cause instead of symptoms
- Maintains profile continuity naturally
- Clean, elegant solution

* fix: force WAL checkpoint after updating places.sqlite

Problem:
- SQLite WAL mode writes changes to .sqlite-wal file first
- Changes aren't visible until WAL is checkpointed to main file
- Zen Browser reads stale data from main file on startup
- User needs to wait or manually trigger checkpoint to see updates

Solution:
- Execute PRAGMA wal_checkpoint(FULL) after all updates
- Forces immediate merge of WAL changes to main database file
- Ensures spaces/pins updates are visible on next Zen startup

This fixes the delay between home-manager rebuild and seeing
configuration changes in Zen Browser.

* fix(darwin): preserve correct bundle identifier in code signature

Problem:
- AdGuard recognizes apps by code signing identifier, not CFBundleIdentifier
- Nix's adhoc re-signing changes identifier from 'app.zen-browser.zen' to 'zen'
- This breaks AdGuard's app filtering for Nix-built Zen Browser

Solution:
- Explicitly set --identifier flag when re-signing with codesign
- Maintains 'app.zen-browser.zen' identifier for AdGuard compatibility
- Ensures proper ad-blocking and app recognition

This allows AdGuard and other security tools to correctly identify
Zen Browser even when built through Nix.
2025-11-05 06:14:41 -05:00
luisnquin
e03039c4e2 chore(update): beta @ x86_64 && aarch64 to 1.17.5b 2025-11-05 11:13:22 +00:00
Luis Quiñones
50d08d4831 revert: "chore(update): beta @ x86_64 && aarch64 to 1.17.5b"
Fixes https://github.com/0xc000022070/zen-browser-flake/issues/151.

This reverts commit 3bcfa80682.
2025-11-05 06:12:11 -05:00
Xin Huang
3a02f3ff6d fix: Add policies.json support for macOS (Darwin) (#149)
Previously, policies.json was only installed for Linux builds,
causing browser policies (including ExtensionSettings) to be
ignored on macOS. This resulted in extensions not being automatically
installed on macOS systems.

This fix adds the policies.json installation to the Darwin install
phase, mirroring the Linux behavior and ensuring policy enforcement
works correctly on macOS.

Fixes extension auto-installation and other policy-based features on macOS.
2025-11-04 21:43:55 -05:00
Xin Huang
15649fc947 fix(macos): use profilePath for places.sqlite and script (#148)
On macOS, Zen Browser stores profiles in:
Library/Application Support/Zen/Profiles/<profile>/

However, the module was using configPath for both scriptFile and
placesFile, which would place them in the wrong directory.

This commit introduces profilePath variable that points to the actual
profile directory location on macOS (configPath + /Profiles), ensuring
both places_update.sh and places.sqlite are in the correct location
alongside other profile files like containers.json.
2025-11-04 14:37:54 -05:00
Mridul Agarwal
715c66c973 readme: reformat to new option names (#146) 2025-11-04 13:14:31 -05:00
Xin Huang
7b1a29692a fix: add quotes to path with spaces in onChange script (#147)
The onChange script was failing on macOS when the path contains spaces
(e.g., "Library/Application Support/Zen"). Without quotes, the shell
interprets the path as multiple arguments, attempting to execute
"/Users/<username>/Library/Application" as a command, which results in
"Permission denied" error.

This fix adds double quotes around the script path to properly handle
spaces in the path.

Fixes the error:
  activate: line 336: /Users/<username>/Library/Application: Permission denied
2025-11-04 13:12:48 -05:00
luisnquin
3bcfa80682 chore(update): beta @ x86_64 && aarch64 to 1.17.5b 2025-11-04 17:12:01 +00:00
luisnquin
098a082491 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1762229385 2025-11-04 04:23:32 +00:00
Luis Quiñones
10e69cb268 style: alejandra format (#144) 2025-11-02 20:04:20 -05:00
luisnquin
68b3775543 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1762067011 2025-11-02 07:17:44 +00:00
luisnquin
5855db6427 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1761970612 2025-11-01 04:21:09 +00:00
luisnquin
26142b8446 chore(update): beta @ x86_64 && aarch64 to 1.17.4b 2025-10-30 21:17:41 +00:00
luisnquin
8d9c768336 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1761795551 2025-10-30 04:23:56 +00:00
luisnquin
c0c8c0eedb chore(update): twilight @ x86_64 && aarch64 to 1.18t#1761754954 2025-10-29 16:29:07 +00:00
luisnquin
1383ed3874 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1761711106 2025-10-29 04:26:48 +00:00
luisnquin
79a94872a3 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1761533787 2025-10-27 03:20:08 +00:00
Mridul Agarwal
9876658e1a readme: add instructions about rycee's firefox addons (#136)
* added instructions for rycee's firefox-addons in the README

* small typos

* small typos

* small typos
2025-10-26 14:30:16 +05:00
Cassie
af9299e3ee readme: add easier instructions for finding pluginIDs 2025-10-26 14:27:48 +05:00
luisnquin
f2579d18a5 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1761447870 2025-10-26 03:10:26 +00:00
luisnquin
4894effc21 chore(update): beta @ x86_64 && aarch64 to 1.17.3b 2025-10-25 10:18:19 +00:00
luisnquin
f338def1f2 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1761363859 2025-10-25 04:22:37 +00:00
luisnquin
457bb3634c chore(update): twilight @ x86_64 && aarch64 to 1.18t#1761347799 2025-10-24 23:18:00 +00:00
luisnquin
c7f5f0122c chore(update): beta @ x86_64 && aarch64 to 1.17.2b 2025-10-24 01:23:32 +00:00
luisnquin
7e5fe8fc73 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1761250008 2025-10-23 20:20:51 +00:00
luisnquin
771a260460 chore(update): beta @ x86_64 && aarch64 to 1.17.1b 2025-10-23 00:41:15 +00:00
luisnquin
767eea37af chore(update): twilight @ x86_64 && aarch64 to 1.18t#1761166009 2025-10-22 21:14:58 +00:00
luisnquin
647840beb5 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1761108342 2025-10-22 05:19:39 +00:00
luisnquin
a2691fb00e chore(update): beta @ x86_64 && aarch64 to 1.17b 2025-10-21 21:18:15 +00:00
luisnquin
8988a5f05b chore(update): twilight @ x86_64 && aarch64 to 1.18t#1761062886 2025-10-21 16:26:23 +00:00
luisnquin
637cb6167d chore(update): twilight @ x86_64 && aarch64 to 1.18t#1761018405 2025-10-21 04:23:26 +00:00
luisnquin
9324a38a74 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1761002903 2025-10-21 01:28:26 +00:00
luisnquin
596c3ac14b chore(update): twilight @ x86_64 && aarch64 to 1.18t#1760931059 2025-10-20 04:25:51 +00:00
luisnquin
5e52b6a9ec chore(update): twilight @ x86_64 && aarch64 to 1.18t#1760896747 2025-10-19 18:25:15 +00:00
luisnquin
a36f9da8a2 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1760843493 2025-10-19 03:16:25 +00:00
luisnquin
b121d5d821 chore(update): twilight @ x86_64 && aarch64 to 1.18t#1760817629 2025-10-18 20:19:55 +00:00