136 Commits
Author SHA1 Message Date
litruv e7e2a43037 Bump cinny to add the debug packet recorder.
Build / prepare (push) Successful in 15s
Checks / checks (push) Successful in 2m20s
Build / build-windows (push) Successful in 4m35s
Build / build-linux (push) Successful in 2m38s
Build / finalize-release (push) Successful in 13s
2026-11-01 09:01:55 +11:00
litruv 4dc6c8c427 Bump cinny to fix the mechanical style rules. [skip build] 2026-11-01 09:01:50 +11:00
litruv 121244e97b Add the debug packet window to the Electron main process. 2026-11-01 09:01:45 +11:00
litruv 54c4cf4386 Bump cinny to turn off the base unused-vars rule for the TS files. [skip build]
Build / prepare (push) Successful in 11s
Build / build-windows (push) Skipped
Build / build-linux (push) Skipped
Build / finalize-release (push) Skipped
Checks / checks (push) Successful in 2m15s
2026-11-01 07:02:48 +11:00
litruv 9cc406b770 Bump cinny to drop the unused imports and inert variables. [skip build]
Build / prepare (push) Successful in 11s
Build / build-windows (push) Skipped
Build / build-linux (push) Skipped
Build / finalize-release (push) Skipped
Checks / checks (push) Successful in 2m20s
2026-11-01 06:09:37 +11:00
litruv 9595b9922d Bump cinny to turn off no-undef for the TS files. [skip build]
Build / prepare (push) Successful in 10s
Build / build-windows (push) Skipped
Build / build-linux (push) Skipped
Build / finalize-release (push) Skipped
Checks / checks (push) Successful in 2m15s
2026-11-01 05:48:42 +11:00
litruv 33af5c9abf Bump cinny to drop the dead Tauri branches and the plugin packages. [skip build]
Build / prepare (push) Successful in 11s
Build / build-windows (push) Skipped
Build / build-linux (push) Skipped
Build / finalize-release (push) Skipped
Checks / checks (push) Successful in 2m19s
2026-11-01 05:35:15 +11:00
litruv 999d5da26c Bump cinny to fix the single-violation style findings. [skip build] 2026-11-01 05:35:01 +11:00
litruv 0ed6df6e97 Bump cinny to remove the playground, and drop the dead playground script. [skip build]
Build / prepare (push) Successful in 11s
Build / build-windows (push) Skipped
Build / build-linux (push) Skipped
Build / finalize-release (push) Skipped
Checks / checks (push) Successful in 2m22s
2026-11-01 04:55:10 +11:00
litruv b78e8187ca Record the skip build rule for checks backlog commits.
Build / prepare (push) Canceled after 0s
Build / build-windows (push) Canceled after 0s
Build / build-linux (push) Canceled after 0s
Build / finalize-release (push) Canceled after 0s
Checks / checks (push) Successful in 2m18s
2026-11-01 04:32:33 +11:00
GitHub Actions 0bbca0d94d chore: bump version to 4.11.220 [skip ci] 2026-10-31 17:31:32 +00:00
litruv 8afd17e176 Bump cinny to export the default in the raw module declaration.
Build / prepare (push) Successful in 14s
Build / build-windows (push) Canceled after 0s
Build / build-linux (push) Canceled after 0s
Build / finalize-release (push) Canceled after 0s
Checks / checks (push) Successful in 2m24s
2026-11-01 04:27:40 +11:00
GitHub Actions 7adc4cdec0 chore: bump version to 4.11.219 [skip ci] 2026-10-31 17:26:28 +00:00
litruv dd2916c30e Bump cinny to apply the auto-fixable lint rules and the formatter.
Build / prepare (push) Successful in 14s
Build / build-windows (push) Canceled after 0s
Build / build-linux (push) Canceled after 0s
Build / finalize-release (push) Canceled after 0s
Checks / checks (push) Successful in 2m14s
2026-11-01 04:24:05 +11:00
litruv 4c6b71fc3b Bump cinny to drop the redundant try around the render check fetch.
Build / prepare (push) Canceled after 0s
Build / build-windows (push) Canceled after 0s
Build / build-linux (push) Canceled after 0s
Build / finalize-release (push) Canceled after 0s
Checks / checks (push) Successful in 2m3s
2026-11-01 04:01:47 +11:00
GitHub Actions 5970c5fb7a chore: bump version to 4.11.218 [skip ci] 2026-10-31 17:00:38 +00:00
litruv 84296e7f87 Bump cinny to point the commit link at the public web base.
Build / prepare (push) Successful in 12s
Checks / checks (push) Successful in 2m2s
Build / build-windows (push) Canceled after 0s
Build / build-linux (push) Canceled after 0s
Build / finalize-release (push) Canceled after 0s
2026-11-01 03:58:28 +11:00
litruv da763937de Point the checks workflow at the public web base. 2026-11-01 03:58:24 +11:00
litruv 4bbffdb840 Skip the Electron build when the commit message marks it.
Build / prepare (push) Successful in 14s
Checks / checks (push) Successful in 2m1s
Build / build-linux (push) Canceled after 0s
Build / finalize-release (push) Canceled after 0s
Build / build-windows (push) Canceled after 2m57s
2026-11-01 03:55:49 +11:00
GitHub Actions 230171e16c chore: bump version to 4.11.217 [skip ci] 2026-10-31 16:48:08 +00:00
litruv e23c40585f Bump cinny to drop the explicit undefined initialisation.
Build / prepare (push) Canceled after 0s
Build / build-windows (push) Canceled after 0s
Build / build-linux (push) Canceled after 0s
Build / finalize-release (push) Canceled after 0s
Checks / checks (push) Successful in 2m1s
2026-11-01 03:45:55 +11:00
litruv b2f6c732e4 Bump cinny to comment the fixing commit when a check issue closes.
Build / prepare (push) Successful in 13s
Build / build-windows (push) Canceled after 0s
Build / build-linux (push) Canceled after 0s
Build / finalize-release (push) Canceled after 0s
Checks / checks (push) Canceled after 1m10s
2026-11-01 03:43:50 +11:00
litruv a2b0a3f930 Pass the commit sha to the checks workflow. 2026-11-01 03:43:47 +11:00
litruv adf6329149 Bump cinny to strip the ANSI codes from check output.
Build / prepare (push) Failing after 14s
Build / build-windows (push) Skipped
Build / build-linux (push) Skipped
Build / finalize-release (push) Skipped
Checks / checks (push) Successful in 2m0s
2026-11-01 03:37:40 +11:00
GitHub Actions 3382db4603 chore: bump version to 4.11.216 [skip ci] 2026-10-31 16:35:36 +00:00
litruv bbaf526e5f Bump cinny to page the open issue list.
Build / prepare (push) Successful in 16s
Checks / checks (push) Successful in 2m0s
Build / build-windows (push) Failing after 3m27s
Build / build-linux (push) Failing after 1m36s
Build / finalize-release (push) Skipped
2026-11-01 03:32:43 +11:00
GitHub Actions 667aed487a chore: bump version to 4.11.215 [skip ci] 2026-10-31 16:23:19 +00:00
litruv 0cbee9a436 Bump cinny to port the ESLint config to flat format.
Build / prepare (push) Successful in 14s
Checks / checks (push) Successful in 2m12s
Build / build-windows (push) Successful in 4m48s
Build / build-linux (push) Successful in 2m46s
Build / finalize-release (push) Successful in 6s
2026-11-01 03:20:29 +11:00
litruv ba6832371a Add a checks workflow that files Gitea issues on push. 2026-11-01 03:20:28 +11:00
GitHub Actions 402eb29f06 chore: bump version to 4.11.214 [skip ci] 2026-10-31 15:04:08 +00:00
litruv 64863057be Bump cinny to add the developer tools profile fields view.
Build / prepare (push) Successful in 15s
Build / build-windows (push) Successful in 4m15s
Build / build-linux (push) Successful in 2m44s
Build / finalize-release (push) Successful in 4s
2026-11-01 02:03:50 +11:00
litruv 6966e44830 Merge branch 'main' of https://git.ruv.wtf/litruv/cinny-desktop 2026-11-01 02:03:43 +11:00
litruv 78850488c7 Bump cinny to add the custom typing verb. 2026-11-01 01:25:30 +11:00
GitHub Actions 480771b4ab chore: bump version to 4.11.213 [skip ci] 2026-10-31 13:01:20 +00:00
litruv d6d6b99e38 Bump cinny to revert the activity bar viewport anchor.
Build / prepare (push) Successful in 15s
Build / build-windows (push) Successful in 4m55s
Build / build-linux (push) Successful in 2m48s
Build / finalize-release (push) Successful in 4s
2026-10-31 23:58:09 +11:00
GitHub Actions abbd1c953b chore: bump version to 4.11.212 [skip ci] 2026-10-15 12:16:06 +00:00
litruv 72b749e933 Bump cinny to fetch the TikTok oEmbed through the main process.
Build / prepare (push) Successful in 15s
Build / build-windows (push) Successful in 4m28s
Build / build-linux (push) Successful in 2m38s
Build / finalize-release (push) Successful in 4s
2026-10-15 23:13:14 +11:00
litruv a2a2fe39e0 Fetch the TikTok oEmbed in the main process with a browser user agent. 2026-10-15 23:13:10 +11:00
GitHub Actions cb4b447de7 chore: bump version to 4.11.211 [skip ci] 2026-10-13 08:44:51 +00:00
litruv c01aba04f8 Bump cinny to remove the delivery receipt.
Build / prepare (push) Successful in 14s
Build / build-windows (push) Successful in 4m22s
Build / build-linux (push) Successful in 2m35s
Build / finalize-release (push) Successful in 4s
2026-10-13 19:05:05 +11:00
GitHub Actions 284c88b775 chore: bump version to 4.11.210 [skip ci] 2026-10-13 03:34:53 +00:00
litruv 12532f7d8b Bump cinny to report the activity bar against the message in the viewport.
Build / prepare (push) Successful in 15s
Build / build-windows (push) Successful in 4m20s
Build / build-linux (push) Successful in 2m35s
Build / finalize-release (push) Successful in 4s
2026-10-13 14:34:35 +11:00
litruv eaa90d83df Fix plugin install failing with EXDEV when temp and userData are on different filesystems 2026-10-13 14:34:30 +11:00
GitHub Actions 5b3b71c278 chore: bump version to 4.11.209 [skip ci] 2026-10-13 01:44:05 +00:00
litruv f403515f29 Bump cinny to add Telegram-style delivery receipt to Paarrot.
Build / prepare (push) Successful in 14s
Build / build-windows (push) Successful in 4m20s
Build / build-linux (push) Successful in 2m37s
Build / finalize-release (push) Successful in 4s
2026-10-13 12:43:52 +11:00
GitHub Actions 4f02e12231 chore: bump version to 4.11.208 [skip ci] 2026-10-12 16:11:37 +00:00
litruv 09813a4dc0 Bump cinny to add word wrap, line numbers, and language override to code blocks.
Build / prepare (push) Successful in 15s
Build / build-windows (push) Successful in 4m35s
Build / build-linux (push) Successful in 2m35s
Build / finalize-release (push) Successful in 4s
2026-10-13 03:11:24 +11:00
GitHub Actions 532455309c chore: bump version to 4.11.207 [skip ci] 2026-10-06 00:14:31 +00:00
litruv 615356ca1f Bump cinny to show cached spaces on the loading splash until the chats are ready.
Build / prepare (push) Successful in 15s
Build / build-windows (push) Successful in 4m19s
Build / build-linux (push) Successful in 2m34s
Build / finalize-release (push) Successful in 4s
2026-10-06 11:11:58 +11:00
GitHub Actions cee7bb5a20 chore: bump version to 4.11.206 [skip ci] 2026-10-05 22:53:13 +00:00
litruv 4efc74eea3 CI: use Node 22 (matrix-js-sdk, pdfjs-dist, vite-plugin-static-copy require >=22)
Build / prepare (push) Successful in 14s
Build / build-windows (push) Successful in 4m13s
Build / build-linux (push) Successful in 2m36s
Build / finalize-release (push) Successful in 7s
2026-10-06 09:50:17 +11:00
GitHub Actions f444e7e8a7 chore: bump version to 4.11.205 [skip ci] 2026-10-05 22:47:26 +00:00
litruv 6488d31e77 Revert compression to normal: store made the NSIS exe ~3x larger for ~2 min of packaging time
Build / prepare (push) Successful in 14s
Build / build-windows (push) Successful in 4m14s
Build / finalize-release (push) Canceled after 0s
Build / build-linux (push) Canceled after 1m10s
2026-10-06 09:47:11 +11:00
GitHub Actions f69c481a35 chore: bump version to 4.11.204 [skip ci] 2026-10-05 22:36:51 +00:00
litruv 9458ede739 Note that force_pull must stay false so the baked runner image tag is not re-pulled
Build / prepare (push) Successful in 14s
Build / build-windows (push) Successful in 4m24s
Build / build-linux (push) Successful in 2m35s
Build / finalize-release (push) Successful in 1s
2026-10-06 09:36:38 +11:00
GitHub Actions 5832e3e2ec chore: bump version to 4.11.203 [skip ci] 2026-10-05 22:27:34 +00:00
litruv 9bbe8d6814 Note that the baked runner image is tagged as gitea/runner-images:ubuntu-latest
Build / prepare (push) Successful in 14s
Build / build-windows (push) Successful in 4m33s
Build / build-linux (push) Successful in 2m36s
Build / finalize-release (push) Successful in 7s
2026-10-06 09:25:08 +11:00
GitHub Actions d4ccf479a9 chore: bump version to 4.11.202 [skip ci] 2026-10-05 22:21:43 +00:00
litruv cee44b3dbd Bake wine into the runner image; wine step is now a no-op when present
Build / prepare (push) Successful in 15s
Build / build-linux (push) Successful in 2m43s
Build / build-windows (push) Failing after 14m10s
Build / finalize-release (push) Successful in 4s
2026-10-06 09:21:30 +11:00
GitHub Actions 805c32cf75 chore: bump version to 4.11.201 [skip ci] 2026-10-05 22:11:41 +00:00
litruv 4c1c76096b Confirm act_runner cache saves are working
Build / prepare (push) Successful in 16s
Build / build-windows (push) Successful in 6m18s
Build / build-linux (push) Successful in 2m52s
Build / finalize-release (push) Successful in 5s
2026-10-06 09:11:24 +11:00
GitHub Actions 15a2b4add2 chore: bump version to 4.11.200 [skip ci] 2026-10-05 22:00:44 +00:00
litruv 427e148a15 Restore wine32 for NSIS: wine64 package provides no wine command on PATH
Build / prepare (push) Successful in 15s
Build / build-windows (push) Successful in 6m49s
Build / build-linux (push) Successful in 2m49s
Build / finalize-release (push) Successful in 5s
2026-10-06 09:00:29 +11:00
GitHub Actions 440f0d7ae4 chore: bump version to 4.11.199 [skip ci] 2026-10-05 21:53:11 +00:00
litruv 9bc270ad49 Note act_runner cache server reachability requirement
Build / prepare (push) Successful in 15s
Build / build-windows (push) Failing after 53s
Build / build-linux (push) Successful in 2m46s
Build / finalize-release (push) Canceled after 11s
2026-10-06 08:52:58 +11:00
GitHub Actions 1cbd0c59bb chore: bump version to 4.11.198 [skip ci] 2026-10-05 21:44:44 +00:00
litruv e67e15ad37 Document runner cache server ports required for actions/cache
Build / prepare (push) Successful in 15s
Build / build-windows (push) Failing after 5m40s
Build / finalize-release (push) Canceled after 0s
Build / build-linux (push) Canceled after 2m28s
2026-10-06 08:44:31 +11:00
GitHub Actions e8745d4fb9 chore: bump version to 4.11.197 [skip ci] 2026-10-05 21:26:48 +00:00
litruv a48a96fb84 Make cache steps non-fatal: restore timeouts should not fail builds
Build / prepare (push) Successful in 18s
Build / build-windows (push) Failing after 5m47s
Build / finalize-release (push) Canceled after 0s
Build / build-linux (push) Canceled after 8m6s
2026-10-06 08:26:33 +11:00
GitHub Actions 5f78ef721f chore: bump version to 4.11.196 [skip ci] 2026-10-05 21:20:05 +00:00
litruv fc9679b4de Fix wine install: refresh apt index before installing wine64
Build / prepare (push) Successful in 14s
Build / build-windows (push) Failing after 6m18s
Build / finalize-release (push) Canceled after 0s
Build / build-linux (push) Canceled after 6m34s
2026-10-06 08:19:52 +11:00
GitHub Actions e5a6a16463 chore: bump version to 4.11.195 [skip ci] 2026-10-05 21:04:32 +00:00
litruv 7821c23878 Optimize CI build: npm/electron caches, merged prepare job, wine64-only, store compression
Build / prepare (push) Successful in 15s
Build / build-windows (push) Failing after 5m9s
Build / finalize-release (push) Canceled after 0s
Build / build-linux (push) Canceled after 10m24s
- Cache ~/.npm (setup-node) and ~/.cache/electron{,-builder} between runs
- Merge increment-version + prepare-release into one job; build jobs check out
  the bumped commit directly instead of pulling
- Install wine64 only (drop i386 arch + wine32)
- Shallow checkouts in build jobs; drop no-op clean step
- Fix GITHUB_TOKEN/GITEA_TOKEN mixup in finalize-release tag cleanup
- NSIS compression: store (faster, larger exe)
- Bump cinny submodule: sourcemap skipped in CI
2026-10-06 08:04:19 +11:00
GitHub Actions cb4445f812 chore: bump version to 4.11.194 [skip ci] 2026-10-05 20:50:17 +00:00
litruv cc45650d8c Bump cinny to add the 4.11.193 update notes.
Build / increment-version (push) Successful in 12s
Build / prepare-release (push) Successful in 13s
Build / build-windows (push) Successful in 6m41s
Build / build-linux (push) Successful in 2m49s
Build / finalize-release (push) Successful in 7s
2026-10-06 07:50:01 +11:00
GitHub Actions af674be546 chore: bump version to 4.11.193 [skip ci] 2026-10-05 20:43:43 +00:00
litruv 63ce548072 Bump cinny to cache profile fields and assets behind one shared store.
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 14s
Build / build-linux (push) Canceled after 0s
Build / finalize-release (push) Canceled after 0s
Build / build-windows (push) Canceled after 4m47s
2026-10-06 07:43:23 +11:00
GitHub Actions 863352fc7c chore: bump version to 4.11.192 [skip ci] 2026-10-05 13:38:48 +00:00
litruv ec23124722 Bump cinny to open the last seen channel on startup.
Build / increment-version (push) Successful in 12s
Build / prepare-release (push) Successful in 13s
Build / build-windows (push) Successful in 6m48s
Build / build-linux (push) Successful in 2m54s
Build / finalize-release (push) Successful in 5s
2026-10-06 00:38:28 +11:00
GitHub Actions afc4ba1087 chore: bump version to 4.11.191 [skip ci] 2026-08-24 14:03:10 +00:00
litruv f022155aa1 Update responsive image attachments
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 16s
Build / build-windows (push) Successful in 7m8s
Build / build-linux (push) Successful in 3m10s
Build / finalize-release (push) Successful in 6s
Advance Cinny to the responsive message image fix.
2026-08-25 00:02:49 +10:00
GitHub Actions f4ec39f229 chore: bump version to 4.11.190 [skip ci] 2026-08-24 13:58:49 +00:00
litruv 848283da42 Add TikTok player embed
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 14s
Build / build-linux (push) Has been cancelled
Build / finalize-release (push) Has been cancelled
Build / build-windows (push) Has been cancelled
Use TikTok's supported iframe player and safely invoke yt-dlp for YouTube streams.
2026-08-24 23:58:35 +10:00
GitHub Actions 2cd9409e3d chore: bump version to 4.11.189 [skip ci] 2026-08-24 10:07:31 +00:00
litruv b85774e911 Bump cinny for Capacitor HTTP.
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 14s
Build / build-windows (push) Successful in 6m37s
Build / build-linux (push) Successful in 3m10s
Build / finalize-release (push) Successful in 4s
Include the native HTTP configuration required for mobile collectible catalog downloads.
2026-08-24 20:07:17 +10:00
GitHub Actions 73d31a2cb4 chore: bump version to 4.11.188 [skip ci] 2026-08-24 09:53:09 +00:00
litruv f9bc1c7c2f Bump cinny for mobile collectibles support.
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 14s
Build / build-windows (push) Successful in 6m44s
Build / build-linux (push) Successful in 3m6s
Build / finalize-release (push) Successful in 4s
Use the mobile catalog and CDN fallback for profile cosmetics outside Electron.
2026-08-24 19:52:54 +10:00
GitHub Actions 85995d0744 chore: bump version to 4.11.187 [skip ci] 2026-08-24 09:30:06 +00:00
litruv 9d7ae1d63b Use published Discord collectibles catalog.
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 14s
Build / build-windows (push) Successful in 6m54s
Build / build-linux (push) Successful in 3m5s
Build / finalize-release (push) Successful in 4s
Fetch and persist the public release catalog locally while retiring client-side Discord token handling.
2026-08-24 19:29:53 +10:00
GitHub Actions ce7b2104ad chore: bump version to 4.11.186 [skip ci] 2026-08-24 08:49:07 +00:00
litruv 60d65a29ff Bump cinny for configurable sidebar nameplate background.
Build / increment-version (push) Successful in 12s
Build / prepare-release (push) Successful in 14s
Build / build-windows (push) Successful in 6m49s
Build / build-linux (push) Failing after 3m18s
Build / finalize-release (push) Successful in 4s
Include immediate collectible rendering updates and sidebar opacity controls.
2026-08-24 18:48:53 +10:00
GitHub Actions ce29b24c28 chore: bump version to 4.11.185 [skip ci] 2026-08-23 14:55:15 +00:00
litruv 608cbaf682 Add Discord collectibles IPC and bump cinny for profile overlays.
Build / increment-version (push) Successful in 12s
Build / prepare-release (push) Successful in 15s
Build / build-windows (push) Successful in 6m55s
Build / build-linux (push) Successful in 3m10s
Build / finalize-release (push) Successful in 4s
Wire electron-side catalog fetch and asset download, exposing collectibles APIs to the renderer for live Discord shop browsing and Matrix profile uploads.
2026-08-24 00:55:01 +10:00
GitHub Actions 8ca7be8b42 chore: bump version to 4.11.184 [skip ci] 2026-08-23 06:55:17 +00:00
litruv 3c55fe65a3 Bump cinny: What's New dialog fixes and readable dev class names.
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 14s
Build / build-windows (push) Successful in 7m2s
Build / build-linux (push) Successful in 3m4s
Build / finalize-release (push) Successful in 4s
2026-08-23 16:55:04 +10:00
GitHub Actions f99b3c85d4 chore: bump version to 4.11.183 [skip ci] 2026-08-23 06:18:56 +00:00
litruv fc4f087c68 Bump cinny for Android About/updates fixes and overlay user color crash guard.
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 14s
Build / build-windows (push) Successful in 6m40s
Build / build-linux (push) Successful in 3m3s
Build / finalize-release (push) Successful in 4s
2026-08-23 16:18:43 +10:00
GitHub Actions 6d347a6f6b chore: bump version to 4.11.182 [skip ci] 2026-08-22 22:38:44 +00:00
litruv 316a5514e6 Bump cinny for Android View updates dialog fix.
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 15s
Build / build-windows (push) Successful in 6m44s
Build / build-linux (push) Successful in 3m2s
Build / finalize-release (push) Successful in 4s
2026-08-23 08:38:29 +10:00
GitHub Actions 8392e3f7f5 chore: bump version to 4.11.181 [skip ci] 2026-08-22 22:26:52 +00:00
litruv 61b3cbc6d8 Point desktop build at cinny-local update manifest script for mobile CI.
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 15s
Build / build-windows (push) Successful in 6m46s
Build / build-linux (push) Successful in 3m1s
Build / finalize-release (push) Successful in 7s
2026-08-23 08:26:33 +10:00
GitHub Actions 9befaa14a5 chore: bump version to 4.11.180 [skip ci] 2026-08-22 22:23:43 +00:00
litruv ea45c4551b Bump cinny for What's New auto-show on first launch after update.
Build / increment-version (push) Successful in 12s
Build / prepare-release (push) Successful in 14s
Build / finalize-release (push) Has been cancelled
Build / build-windows (push) Has been cancelled
Build / build-linux (push) Has been cancelled
2026-08-23 08:23:23 +10:00
GitHub Actions 146927fc10 chore: bump version to 4.11.179 [skip ci] 2026-08-22 22:20:20 +00:00
litruv 8edbc1b19a Bump cinny for Android updates dialog fix and add release notes manifest workflow.
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 14s
Build / build-windows (push) Has started running
Build / finalize-release (push) Has been cancelled
Build / build-linux (push) Has been cancelled
2026-08-23 08:20:07 +10:00
GitHub Actions 9700c645a3 chore: bump version to 4.11.178 [skip ci] 2026-08-22 22:07:17 +00:00
litruv 2828ae425c Add native media save dialog and bump cinny submodule.
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 14s
Build / build-windows (push) Successful in 6m51s
Build / build-linux (push) Successful in 3m11s
Build / finalize-release (push) Successful in 5s
Wire Electron/Tauri save-file IPC for desktop downloads and update the cinny submodule with username colors, release notes, and account profile layout fixes.
2026-08-23 08:07:02 +10:00
GitHub Actions 5e06256973 chore: bump version to 4.11.177 [skip ci] 2026-08-09 08:35:32 +00:00
litruv 28c7dedf65 Bump cinny for fullscreen sick emoji confetti spew.
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 14s
Build / build-windows (push) Successful in 7m35s
Build / build-linux (push) Successful in 3m13s
Build / finalize-release (push) Successful in 4s
2026-08-09 18:35:17 +10:00
GitHub Actions ca10121796 chore: bump version to 4.11.176 [skip ci] 2026-08-09 05:59:10 +00:00
litruv 1ad1fc7b70 Bump cinny for shadowbox image viewer.
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 15s
Build / build-windows (push) Successful in 7m31s
Build / build-linux (push) Successful in 3m16s
Build / finalize-release (push) Successful in 6s
2026-08-09 15:58:52 +10:00
GitHub Actions f16b84a9f1 chore: bump version to 4.11.175 [skip ci] 2026-08-09 05:50:38 +00:00
litruv e917193b0d Harden Linux clipboard image paste and bump cinny.
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 15s
Build / build-windows (push) Successful in 7m28s
Build / finalize-release (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Require a real image/* clipboard format before treating paste as an image, and pick up firework confetti plus URL-paste fixes from cinny.
2026-08-09 15:50:23 +10:00
GitHub Actions fc5d498673 chore: bump version to 4.11.174 [skip ci] 2026-08-09 03:17:02 +00:00
litruv c01bd9a43e Bump cinny for bot-driven room app UI.
Build / increment-version (push) Successful in 14s
Build / prepare-release (push) Successful in 14s
Build / build-windows (push) Successful in 8m3s
Build / build-linux (push) Successful in 3m22s
Build / finalize-release (push) Successful in 4s
2026-08-09 13:16:48 +10:00
GitHub Actions 3f4b1b3fc4 chore: bump version to 4.11.173 [skip ci] 2026-08-03 05:22:25 +00:00
litruv 24b59a454a Ensure wine binary exists for Windows NSIS cross-builds.
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 14s
Build / build-linux (push) Successful in 2m58s
Build / build-windows (push) Successful in 5m46s
Build / finalize-release (push) Successful in 4s
2026-08-03 15:22:12 +10:00
GitHub Actions fac9a49d56 chore: bump version to 4.11.172 [skip ci] 2026-08-03 05:16:00 +00:00
litruv 83993efc83 Run Windows Electron builds on Linux with Wine.
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 14s
Build / build-linux (push) Successful in 3m2s
Build / build-windows (push) Failing after 4m57s
Build / finalize-release (push) Successful in 4s
2026-08-03 15:15:46 +10:00
GitHub Actions 44a9230df3 chore: bump version to 4.11.171 [skip ci] 2026-08-03 05:08:38 +00:00
litruv 658ff1215c Bump cinny: local API message and unread endpoints by scope.
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 14s
Build / build-linux (push) Successful in 2m55s
Build / build-windows (push) Successful in 3m54s
Build / finalize-release (push) Successful in 5s
2026-08-03 15:08:25 +10:00
GitHub Actions 829e9b06cb chore: bump version to 4.11.170 [skip ci] 2026-07-29 10:41:07 +00:00
litruv e64279db74 Bump cinny: emoji confetti bursts and component playground.
Build / increment-version (push) Successful in 12s
Build / prepare-release (push) Successful in 13s
Build / build-linux (push) Successful in 3m13s
Build / build-windows (push) Successful in 6m11s
Build / finalize-release (push) Successful in 4s
Wire the playground npm script through the desktop wrapper.
2026-07-29 20:40:53 +10:00
GitHub Actions 85d95faf11 chore: bump version to 4.11.169 [skip ci] 2026-07-25 10:09:49 +00:00
litruv 61de658029 Bump cinny: fix avatar upload for JPEG/WebP/GIF without profile color.
Build / increment-version (push) Successful in 12s
Build / prepare-release (push) Successful in 16s
Build / build-linux (push) Successful in 3m21s
Build / build-windows (push) Successful in 5m45s
Build / finalize-release (push) Successful in 4s
2026-07-25 20:09:35 +10:00
GitHub Actions c8b57ba217 chore: bump version to 4.11.168 [skip ci] 2026-07-24 06:52:49 +00:00
litruv 8d8809d0c7 Bump cinny: open DMs while space parent maps catch up.
Build / increment-version (push) Successful in 12s
Build / prepare-release (push) Successful in 14s
Build / build-linux (push) Successful in 2m44s
Build / build-windows (push) Successful in 3m45s
Build / finalize-release (push) Successful in 4s
2026-07-24 16:52:35 +10:00
GitHub Actions 55a0f4f566 chore: bump version to 4.11.167 [skip ci] 2026-07-24 06:24:58 +00:00
litruv f488f32d88 Fix PowerShell mangling GitHub upload URLs with ?name=.
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 13s
Build / build-linux (push) Successful in 2m45s
Build / build-windows (push) Successful in 3m43s
Build / finalize-release (push) Successful in 4s
2026-07-24 16:24:44 +10:00
GitHub Actions 9154929de9 chore: bump version to 4.11.166 [skip ci] 2026-07-24 06:20:05 +00:00
litruv c2cc0d5ed5 Fix PowerShell origin URL trimming for submodule checkout.
Build / increment-version (push) Successful in 13s
Build / prepare-release (push) Successful in 13s
Build / build-linux (push) Successful in 2m44s
Build / build-windows (push) Failing after 3m22s
Build / finalize-release (push) Successful in 8s
2026-07-24 16:19:51 +10:00
GitHub Actions aa38348fdd chore: bump version to 4.11.165 [skip ci] 2026-07-24 06:17:38 +00:00
litruv 02ab544a37 Fix CI Windows upload shell and submodule clone host.
Build / increment-version (push) Successful in 12s
Build / prepare-release (push) Successful in 14s
Build / build-windows (push) Failing after 11s
Build / finalize-release (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Use PowerShell + curl.exe on the Windows runner (no WSL), and clone cinny via a relative/origin-derived URL so act runners do not hairpin through public HTTPS.
2026-07-24 16:17:23 +10:00
GitHub Actions 3707a6d38a chore: bump version to 4.11.164 [skip ci] 2026-07-24 06:09:58 +00:00
litruv fe1f4abf2d Bypass flaky Actions artifacts for AppImage/exe uploads.
Build / increment-version (push) Successful in 12s
Build / prepare-release (push) Successful in 13s
Build / build-windows (push) Failing after 3m27s
Build / finalize-release (push) Has been cancelled
Build / build-linux (push) Has been cancelled
Publish build outputs straight to Gitea/GitHub releases via the REST API with no HTTP timeout, since Gitea's artifact pipeline keeps timing out on ~130MB binaries.
2026-07-24 16:09:44 +10:00
litruv 147389724e Point cinny submodule at git.ruv.wtf. 2026-07-24 16:02:45 +10:00
18 changed files with 1548 additions and 314 deletions
+393 -280
View File
@@ -8,13 +8,23 @@ on:
tags:
- 'v*'
# Large AppImage/exe uploads time out on Gitea's actions artifact pipeline.
# Build jobs publish assets straight to Gitea/GitHub releases via the REST API.
# actions/cache works on the self-hosted runner (pizzabox): act_runner runs its own
# cache server, so its port must be reachable from the job container. Fixed ports
# (34085 docker runner, 34086 host runner) plus a ufw rule for the docker range.
# Saves are confirmed working, so runs after the first should hit.
jobs:
increment-version:
prepare:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.finalize.outputs.VERSION }}
tag: ${{ steps.finalize.outputs.TAG_NAME }}
commit_sha: ${{ steps.finalize.outputs.COMMIT_SHA }}
should_build: ${{ steps.decide.outputs.SHOULD_BUILD }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
@@ -39,6 +49,11 @@ jobs:
SHOULD_BUILD=false
fi
# [skip build] runs the checks workflow but skips the Electron build.
if echo "$COMMIT_MSG" | grep -qi '\[skip build\]'; then
SHOULD_BUILD=false
fi
echo "CURRENT_VERSION=$CURRENT" >> $GITHUB_OUTPUT
echo "SHOULD_BUMP=$SHOULD_BUMP" >> $GITHUB_OUTPUT
echo "SHOULD_BUILD=$SHOULD_BUILD" >> $GITHUB_OUTPUT
@@ -46,15 +61,15 @@ jobs:
echo "Current version: $CURRENT"
echo "Should bump: $SHOULD_BUMP"
echo "Should build: $SHOULD_BUILD"
- name: Bump patch version
id: bump
if: ${{ steps.decide.outputs.SHOULD_BUMP == 'true' }}
if: steps.decide.outputs.SHOULD_BUILD == 'true' && steps.decide.outputs.SHOULD_BUMP == 'true'
run: |
# Get current version from package.json
CURRENT=$(grep -Po '"version":\s*"\K[^"]+' package.json | head -1)
echo "Current version: $CURRENT"
# Split and increment patch
MAJOR=$(echo $CURRENT | cut -d. -f1)
MINOR=$(echo $CURRENT | cut -d. -f2)
@@ -62,17 +77,17 @@ jobs:
NEW_PATCH=$((PATCH + 1))
NEW_VERSION="${MAJOR}.${MINOR}.${NEW_PATCH}"
echo "New version: $NEW_VERSION"
# Update package.json
sed -i "s/\"version\": \"${CURRENT}\"/\"version\": \"${NEW_VERSION}\"/" package.json
# Verify the change
grep '"version"' package.json | head -1
echo "VERSION=$NEW_VERSION" >> $GITHUB_OUTPUT
- name: Commit and push version bump
if: ${{ steps.decide.outputs.SHOULD_BUMP == 'true' }}
if: steps.decide.outputs.SHOULD_BUILD == 'true' && steps.decide.outputs.SHOULD_BUMP == 'true'
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
@@ -96,104 +111,106 @@ jobs:
echo "Failed to push version bump after 3 attempts"
exit 1
- name: Finalize version output
- name: Resolve version and commit
id: finalize
if: steps.decide.outputs.SHOULD_BUILD == 'true'
run: |
if [ -n "${{ steps.bump.outputs.VERSION }}" ]; then
echo "VERSION=${{ steps.bump.outputs.VERSION }}" >> $GITHUB_OUTPUT
VERSION="${{ steps.bump.outputs.VERSION }}"
else
echo "VERSION=${{ steps.decide.outputs.CURRENT_VERSION }}" >> $GITHUB_OUTPUT
VERSION=$(grep -Po '"version":\s*"\K[^"]+' package.json | head -1)
fi
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "TAG_NAME=v$VERSION" >> $GITHUB_OUTPUT
echo "COMMIT_SHA=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT
echo "Version: $VERSION"
- name: Create and push tag
if: steps.decide.outputs.SHOULD_BUILD == 'true'
run: |
TAG_NAME="${{ steps.finalize.outputs.TAG_NAME }}"
if git rev-parse "$TAG_NAME" >/dev/null 2>&1; then
echo "Tag $TAG_NAME already exists"
else
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git tag -a "$TAG_NAME" -m "Release $TAG_NAME"
git push origin "$TAG_NAME"
fi
build-windows:
runs-on: windows
needs: increment-version
if: always() && (needs.increment-version.outputs.should_build == 'true' || needs.increment-version.result == 'skipped')
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: false
ref: ${{ github.ref_name }}
- name: Checkout submodules manually
shell: powershell
- name: Ensure Gitea release
if: steps.decide.outputs.SHOULD_BUILD == 'true'
env:
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git submodule sync --recursive
set -euo pipefail
VERSION="${{ steps.finalize.outputs.VERSION }}"
TAG_NAME="${{ steps.finalize.outputs.TAG_NAME }}"
API_BASE="${{ github.server_url }}/api/v1"
REPO="${{ github.repository }}"
if (git submodule update --init --recursive) {
Write-Host "Submodules checked out at pinned commits."
exit 0
}
RELEASE_ID=$(curl -fsS -H "Authorization: token ${GITEA_TOKEN}" \
"${API_BASE}/repos/${REPO}/releases/tags/${TAG_NAME}" | jq -r '.id // empty' || true)
Write-Warning "Pinned submodule commit is unavailable on remote. Falling back to remote submodule HEAD."
git submodule deinit -f --all
git submodule update --init --recursive --remote
if [ -z "$RELEASE_ID" ]; then
echo "Creating Gitea release ${TAG_NAME}..."
RELEASE_ID=$(curl -fsS -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \
-d "{\"tag_name\": \"${TAG_NAME}\", \"name\": \"Release ${TAG_NAME}\", \"body\": \"Release ${VERSION}\", \"draft\": false, \"prerelease\": false}" \
"${API_BASE}/repos/${REPO}/releases" | jq -r '.id')
fi
Write-Host "Resolved submodule commit:"
git -C cinny rev-parse HEAD
- name: Pull latest (after version bump)
if: github.ref == 'refs/heads/main'
shell: powershell
run: git pull origin main
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install dependencies (root)
run: npm ci --prefer-offline
- name: Install dependencies (cinny)
working-directory: ./cinny
run: npm ci --prefer-offline
- name: Clean previous builds
shell: powershell
run: |
if (Test-Path cinny/dist) { Remove-Item -Recurse -Force cinny/dist }
if (Test-Path dist-electron) { Remove-Item -Recurse -Force dist-electron }
- name: Build Electron app
run: npm run build:local -- --win
echo "Gitea release id: ${RELEASE_ID}"
- name: Ensure GitHub release
if: steps.decide.outputs.SHOULD_BUILD == 'true'
env:
GH_TOKEN: ${{ secrets.GHTOKEN }}
- name: Upload NSIS Installer (x64)
uses: actions/upload-artifact@v3
with:
name: Paarrot-Setup-x64.exe
path: dist-electron/Paarrot-*-win-x64.exe
- name: Upload latest.yml
uses: actions/upload-artifact@v3
with:
name: latest.yml
path: dist-electron/latest.yml
- name: List build output
shell: powershell
run: |
Get-ChildItem -Path dist-electron -Recurse | Select-Object FullName
set -euo pipefail
VERSION="${{ steps.finalize.outputs.VERSION }}"
TAG_NAME="${{ steps.finalize.outputs.TAG_NAME }}"
GITHUB_REPO="Paarrot/Paarrot-Desktop"
build-linux:
RELEASE_ID=$(curl -fsS -H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GITHUB_REPO}/releases/tags/${TAG_NAME}" | jq -r '.id // empty' || true)
if [ -z "$RELEASE_ID" ]; then
echo "Creating GitHub release ${TAG_NAME}..."
RELEASE_ID=$(curl -fsS -X POST \
-H "Authorization: token ${GH_TOKEN}" \
-H "Content-Type: application/json" \
-d "{\"tag_name\": \"${TAG_NAME}\", \"name\": \"Release ${TAG_NAME}\", \"body\": \"Release ${VERSION}\", \"draft\": false, \"prerelease\": false}" \
"https://api.github.com/repos/${GITHUB_REPO}/releases" | jq -r '.id')
fi
echo "GitHub release id: ${RELEASE_ID}"
build-windows:
runs-on: ubuntu-latest
needs: increment-version
if: always() && (needs.increment-version.outputs.should_build == 'true' || needs.increment-version.result == 'skipped')
needs: prepare
if: always() && needs.prepare.result == 'success' && needs.prepare.outputs.should_build == 'true'
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: false
ref: ${{ github.ref_name }}
fetch-depth: 1
ref: ${{ needs.prepare.outputs.commit_sha }}
- name: Checkout submodules manually
run: |
set -euo pipefail
# Use the same host/scheme the runner already used for origin (not public HTTPS).
ORIGIN_URL=$(git remote get-url origin)
ORIGIN_URL=${ORIGIN_URL%/}
ORIGIN_URL=${ORIGIN_URL%.git}
BASE_URL=${ORIGIN_URL%/*}
CINNY_URL="${BASE_URL}/cinny.git"
echo "Rewriting submodule URL to ${CINNY_URL}"
git config submodule.cinny.url "${CINNY_URL}"
git submodule sync --recursive
if git submodule update --init --recursive; then
@@ -202,239 +219,335 @@ jobs:
fi
echo "Pinned submodule commit is unavailable on remote. Falling back to remote submodule HEAD."
git submodule deinit -f --all
git submodule deinit -f --all || true
rm -rf cinny .git/modules/cinny
git config submodule.cinny.url "${CINNY_URL}"
git submodule sync --recursive
git submodule update --init --recursive --remote
echo "Resolved submodule commit:"
git -C cinny rev-parse HEAD
- name: Pull latest (after version bump)
if: github.ref == 'refs/heads/main'
run: git pull origin main
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
node-version: '22'
cache: 'npm'
cache-dependency-path: |
package-lock.json
cinny/package-lock.json
- name: Cache Electron downloads
uses: actions/cache@v4
continue-on-error: true
with:
path: |
~/.cache/electron
~/.cache/electron-builder
key: electron-${{ hashFiles('package-lock.json') }}
restore-keys: electron-
- name: Install Wine (NSIS cross-build)
run: |
set -euo pipefail
# wine + wine32 + wine64 are prebaked in the runner image used on pizzabox,
# so this is normally a no-op. Fallback below covers runners without it.
# (act_runner takes the image from the label stored in Gitea, so the baked
# image is tagged as gitea/runner-images:ubuntu-latest on that host.)
# force_pull must stay false on that runner, otherwise the shadowed tag is
# replaced by the upstream image and this step installs wine again.
# NSIS's makensis.exe is 32-bit, so wine32 is required; the wine64 package
# alone ships only /usr/lib/wine/wine64 (no `wine` on PATH).
if command -v wine >/dev/null 2>&1; then
echo "wine already present: $(wine --version)"
exit 0
fi
sudo dpkg --add-architecture i386
sudo apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends wine wine32 wine64
if ! command -v wine >/dev/null 2>&1; then
WINE64_BIN=$(command -v wine64 || echo /usr/lib/wine/wine64)
echo "No wine binary; linking wine64 -> /usr/local/bin/wine (${WINE64_BIN})"
sudo ln -sf "${WINE64_BIN}" /usr/local/bin/wine
fi
command -v wine
wine --version
- name: Install dependencies (root)
run: npm ci --prefer-offline
- name: Install dependencies (cinny)
working-directory: ./cinny
run: npm ci --prefer-offline
- name: Clean previous builds
run: |
rm -rf cinny/dist dist-electron
- name: Build Electron app
run: npm run build:local -- --linux
run: npm run build:local -- --win
env:
GH_TOKEN: ${{ secrets.GHTOKEN }}
- name: Upload AppImage
uses: actions/upload-artifact@v3
with:
name: Paarrot-Linux-x64.AppImage
path: dist-electron/Paarrot-*.AppImage
- name: Upload latest-linux.yml
uses: actions/upload-artifact@v3
with:
name: latest-linux.yml
path: dist-electron/latest-linux.yml
CSC_IDENTITY_AUTO_DISCOVERY: 'false'
create-release:
- name: Upload Windows assets to releases
env:
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GHTOKEN }}
run: |
set -euo pipefail
TAG_NAME="${{ needs.prepare.outputs.tag }}"
API_BASE="${{ github.server_url }}/api/v1"
REPO="${{ github.repository }}"
GITHUB_REPO="Paarrot/Paarrot-Desktop"
GITEA_RELEASE_ID=$(curl -fsS -H "Authorization: token ${GITEA_TOKEN}" \
"${API_BASE}/repos/${REPO}/releases/tags/${TAG_NAME}" | jq -r '.id')
GH_RELEASE_ID=$(curl -fsS -H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GITHUB_REPO}/releases/tags/${TAG_NAME}" | jq -r '.id')
GH_UPLOAD_URL=$(curl -fsS -H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GITHUB_REPO}/releases/${GH_RELEASE_ID}" | jq -r '.upload_url' | sed 's/{?name,label}//')
upload_one() {
local FILE="$1"
local FILENAME
FILENAME=$(basename "$FILE")
echo "Uploading ${FILENAME} ($(du -h "$FILE" | cut -f1))..."
OLD_ID=$(curl -fsS -H "Authorization: token ${GITEA_TOKEN}" \
"${API_BASE}/repos/${REPO}/releases/${GITEA_RELEASE_ID}/assets" \
| jq -r --arg n "$FILENAME" '.[] | select(.name == $n) | .id' || true)
if [ -n "${OLD_ID:-}" ]; then
curl -fsS -X DELETE -H "Authorization: token ${GITEA_TOKEN}" \
"${API_BASE}/repos/${REPO}/releases/${GITEA_RELEASE_ID}/assets/${OLD_ID}" >/dev/null
fi
curl -fsS --max-time 0 --retry 5 --retry-delay 10 \
-X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/octet-stream" \
--data-binary @"${FILE}" \
"${API_BASE}/repos/${REPO}/releases/${GITEA_RELEASE_ID}/assets?name=${FILENAME}" \
>/dev/null
echo " Gitea: ok"
OLD_GH=$(curl -fsS -H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GITHUB_REPO}/releases/${GH_RELEASE_ID}/assets" \
| jq -r --arg n "$FILENAME" '.[] | select(.name == $n) | .id' || true)
if [ -n "${OLD_GH:-}" ]; then
curl -fsS -X DELETE -H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GITHUB_REPO}/releases/assets/${OLD_GH}" >/dev/null
fi
curl -fsS --max-time 0 --retry 5 --retry-delay 10 \
-X POST \
-H "Authorization: token ${GH_TOKEN}" \
-H "Content-Type: application/octet-stream" \
--data-binary @"${FILE}" \
"${GH_UPLOAD_URL}?name=${FILENAME}" \
>/dev/null
echo " GitHub: ok"
}
shopt -s nullglob
for FILE in dist-electron/Paarrot-*-win-x64.exe dist-electron/latest.yml; do
upload_one "$FILE"
done
- name: List build output
run: |
find dist-electron -type f -printf '%p\n' | sort
build-linux:
runs-on: ubuntu-latest
needs: [increment-version, build-windows, build-linux]
if: always() && (needs.build-windows.result == 'success' || needs.build-linux.result == 'success')
needs: prepare
if: always() && needs.prepare.result == 'success' && needs.prepare.outputs.should_build == 'true'
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.ref_name }}
- name: Pull latest (after version bump)
if: github.ref == 'refs/heads/main'
run: git pull origin main
- name: Get version
id: version
submodules: false
fetch-depth: 1
ref: ${{ needs.prepare.outputs.commit_sha }}
- name: Checkout submodules manually
run: |
# Use version from increment-version job if available, otherwise read from file
if [ -n "${{ needs.increment-version.outputs.version }}" ]; then
VERSION="${{ needs.increment-version.outputs.version }}"
else
VERSION=$(grep -Po '"version":\s*"\K[^"]+' package.json | head -1)
set -euo pipefail
# Use the same host/scheme the runner already used for origin (not public HTTPS).
ORIGIN_URL=$(git remote get-url origin)
ORIGIN_URL=${ORIGIN_URL%/}
ORIGIN_URL=${ORIGIN_URL%.git}
BASE_URL=${ORIGIN_URL%/*}
CINNY_URL="${BASE_URL}/cinny.git"
echo "Rewriting submodule URL to ${CINNY_URL}"
git config submodule.cinny.url "${CINNY_URL}"
git submodule sync --recursive
if git submodule update --init --recursive; then
echo "Submodules checked out at pinned commits."
exit 0
fi
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "Version: $VERSION"
- name: Check if tag exists
id: tag_check
run: |
VERSION="${{ steps.version.outputs.VERSION }}"
if git rev-parse "v$VERSION" >/dev/null 2>&1; then
echo "Tag v$VERSION already exists"
echo "exists=true" >> $GITHUB_OUTPUT
else
echo "Tag v$VERSION does not exist"
echo "exists=false" >> $GITHUB_OUTPUT
fi
- name: Create and push tag
if: steps.tag_check.outputs.exists == 'false'
run: |
git config user.name "GitHub Actions"
git config user.email "actions@github.com"
git tag -a "v${{ steps.version.outputs.VERSION }}" -m "Release v${{ steps.version.outputs.VERSION }}"
git push origin "v${{ steps.version.outputs.VERSION }}"
- name: Download all artifacts
uses: actions/download-artifact@v3
echo "Pinned submodule commit is unavailable on remote. Falling back to remote submodule HEAD."
git submodule deinit -f --all || true
rm -rf cinny .git/modules/cinny
git config submodule.cinny.url "${CINNY_URL}"
git submodule sync --recursive
git submodule update --init --recursive --remote
echo "Resolved submodule commit:"
git -C cinny rev-parse HEAD
- name: Setup Node.js
uses: actions/setup-node@v4
with:
path: artifacts
- name: Prepare release files
node-version: '22'
cache: 'npm'
cache-dependency-path: |
package-lock.json
cinny/package-lock.json
- name: Cache Electron downloads
uses: actions/cache@v4
continue-on-error: true
with:
path: |
~/.cache/electron
~/.cache/electron-builder
key: electron-${{ hashFiles('package-lock.json') }}
restore-keys: electron-
- name: Install dependencies (root)
run: npm ci --prefer-offline
- name: Install dependencies (cinny)
working-directory: ./cinny
run: npm ci --prefer-offline
- name: Build Electron app
run: npm run build:local -- --linux
env:
GH_TOKEN: ${{ secrets.GHTOKEN }}
- name: Upload Linux assets to releases
env:
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GHTOKEN }}
run: |
mkdir -p release-files
find artifacts -type f \( -name "*.exe" -o -name "*.AppImage" -o -name "*.yml" \) -exec cp {} release-files/ \;
ls -la release-files/
- name: Create or Update Release
set -euo pipefail
TAG_NAME="${{ needs.prepare.outputs.tag }}"
API_BASE="${{ github.server_url }}/api/v1"
REPO="${{ github.repository }}"
GITHUB_REPO="Paarrot/Paarrot-Desktop"
GITEA_RELEASE_ID=$(curl -fsS -H "Authorization: token ${GITEA_TOKEN}" \
"${API_BASE}/repos/${REPO}/releases/tags/${TAG_NAME}" | jq -r '.id')
GH_RELEASE_ID=$(curl -fsS -H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GITHUB_REPO}/releases/tags/${TAG_NAME}" | jq -r '.id')
GH_UPLOAD_URL=$(curl -fsS -H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GITHUB_REPO}/releases/${GH_RELEASE_ID}" | jq -r '.upload_url' | sed 's/{?name,label}//')
upload_one() {
local FILE="$1"
local FILENAME
FILENAME=$(basename "$FILE")
echo "Uploading ${FILENAME} ($(du -h "$FILE" | cut -f1))..."
OLD_ID=$(curl -fsS -H "Authorization: token ${GITEA_TOKEN}" \
"${API_BASE}/repos/${REPO}/releases/${GITEA_RELEASE_ID}/assets" \
| jq -r --arg n "$FILENAME" '.[] | select(.name == $n) | .id' || true)
if [ -n "${OLD_ID:-}" ]; then
curl -fsS -X DELETE -H "Authorization: token ${GITEA_TOKEN}" \
"${API_BASE}/repos/${REPO}/releases/${GITEA_RELEASE_ID}/assets/${OLD_ID}" >/dev/null
fi
curl -fsS --max-time 0 --retry 5 --retry-delay 10 \
-X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/octet-stream" \
--data-binary @"${FILE}" \
"${API_BASE}/repos/${REPO}/releases/${GITEA_RELEASE_ID}/assets?name=${FILENAME}" \
>/dev/null
echo " Gitea: ok"
OLD_GH=$(curl -fsS -H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GITHUB_REPO}/releases/${GH_RELEASE_ID}/assets" \
| jq -r --arg n "$FILENAME" '.[] | select(.name == $n) | .id' || true)
if [ -n "${OLD_GH:-}" ]; then
curl -fsS -X DELETE -H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GITHUB_REPO}/releases/assets/${OLD_GH}" >/dev/null
fi
curl -fsS --max-time 0 --retry 5 --retry-delay 10 \
-X POST \
-H "Authorization: token ${GH_TOKEN}" \
-H "Content-Type: application/octet-stream" \
--data-binary @"${FILE}" \
"${GH_UPLOAD_URL}?name=${FILENAME}" \
>/dev/null
echo " GitHub: ok"
}
shopt -s nullglob
for FILE in dist-electron/Paarrot-*.AppImage dist-electron/latest-linux.yml; do
upload_one "$FILE"
done
finalize-release:
runs-on: ubuntu-latest
needs: [prepare, build-windows, build-linux]
if: always() && needs.prepare.result == 'success' && needs.prepare.outputs.should_build == 'true' && (needs.build-windows.result == 'success' || needs.build-linux.result == 'success')
steps:
- name: Cleanup old Gitea releases
env:
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
VERSION="${{ steps.version.outputs.VERSION }}"
TAG_NAME="v${VERSION}"
API_BASE="http://synbox.ruv.wtf:8418/api/v1"
REPO="litruv/cinny-desktop"
# Delete old releases (keep only current)
echo "Cleaning up old releases..."
OLD_RELEASES=$(curl -s -H "Authorization: token ${GITEA_TOKEN}" \
"${API_BASE}/repos/${REPO}/releases" | jq -r '.[] | select(.tag_name != "'${TAG_NAME}'") | .id')
set -euo pipefail
TAG_NAME="${{ needs.prepare.outputs.tag }}"
API_BASE="${{ github.server_url }}/api/v1"
REPO="${{ github.repository }}"
echo "Cleaning up old Gitea releases (keeping ${TAG_NAME})..."
OLD_RELEASES=$(curl -fsS -H "Authorization: token ${GITEA_TOKEN}" \
"${API_BASE}/repos/${REPO}/releases" | jq -r --arg t "$TAG_NAME" '.[] | select(.tag_name != $t) | .id')
for OLD_ID in $OLD_RELEASES; do
echo "Deleting old release ${OLD_ID}..."
OLD_TAG=$(curl -s -H "Authorization: token ${GITEA_TOKEN}" \
[ -n "$OLD_ID" ] || continue
OLD_TAG=$(curl -fsS -H "Authorization: token ${GITEA_TOKEN}" \
"${API_BASE}/repos/${REPO}/releases/${OLD_ID}" | jq -r '.tag_name')
# Delete release
curl -s -X DELETE -H "Authorization: token ${GITEA_TOKEN}" \
"${API_BASE}/repos/${REPO}/releases/${OLD_ID}"
# Delete tag
if [ -n "$OLD_TAG" ]; then
echo "Deleting old tag ${OLD_TAG}..."
curl -s -X DELETE -H "Authorization: token ${GITEA_TOKEN}" \
"${API_BASE}/repos/${REPO}/tags/${OLD_TAG}"
echo "Deleting Gitea release ${OLD_ID} (${OLD_TAG})..."
curl -fsS -X DELETE -H "Authorization: token ${GITEA_TOKEN}" \
"${API_BASE}/repos/${REPO}/releases/${OLD_ID}" >/dev/null || true
if [ -n "$OLD_TAG" ] && [ "$OLD_TAG" != "null" ]; then
curl -fsS -X DELETE -H "Authorization: token ${GITEA_TOKEN}" \
"${API_BASE}/repos/${REPO}/tags/${OLD_TAG}" >/dev/null || true
fi
done
# Check if release exists
RELEASE_ID=$(curl -s -H "Authorization: token ${GITEA_TOKEN}" \
"${API_BASE}/repos/${REPO}/releases/tags/${TAG_NAME}" | jq -r '.id // empty')
if [ -z "$RELEASE_ID" ]; then
echo "Creating new release for ${TAG_NAME}..."
RELEASE_ID=$(curl -s -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/json" \
-d "{\"tag_name\": \"${TAG_NAME}\", \"name\": \"Release ${TAG_NAME}\", \"body\": \"Release ${VERSION}\", \"draft\": false, \"prerelease\": false}" \
"${API_BASE}/repos/${REPO}/releases" | jq -r '.id')
echo "Created release with ID: ${RELEASE_ID}"
else
echo "Release exists with ID: ${RELEASE_ID}"
# Delete existing assets
echo "Deleting existing assets..."
ASSETS=$(curl -s -H "Authorization: token ${GITEA_TOKEN}" \
"${API_BASE}/repos/${REPO}/releases/${RELEASE_ID}/assets" | jq -r '.[].id')
for ASSET_ID in $ASSETS; do
echo "Deleting asset ${ASSET_ID}..."
curl -s -X DELETE -H "Authorization: token ${GITEA_TOKEN}" \
"${API_BASE}/repos/${REPO}/releases/${RELEASE_ID}/assets/${ASSET_ID}"
done
fi
# Upload new assets
echo "Uploading assets..."
for FILE in release-files/*; do
FILENAME=$(basename "$FILE")
echo "Uploading ${FILENAME}..."
curl -s -X POST \
-H "Authorization: token ${GITEA_TOKEN}" \
-H "Content-Type: application/octet-stream" \
--data-binary "@${FILE}" \
"${API_BASE}/repos/${REPO}/releases/${RELEASE_ID}/assets?name=${FILENAME}"
echo ""
done
echo "Release complete!"
- name: Create GitHub Release
- name: Cleanup old GitHub releases
env:
GH_TOKEN: ${{ secrets.GHTOKEN }}
run: |
VERSION="${{ steps.version.outputs.VERSION }}"
TAG_NAME="v${VERSION}"
set -euo pipefail
TAG_NAME="${{ needs.prepare.outputs.tag }}"
GITHUB_REPO="Paarrot/Paarrot-Desktop"
# Delete old GitHub releases (keep only current)
echo "Cleaning up old GitHub releases..."
OLD_RELEASES=$(curl -s -H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GITHUB_REPO}/releases" | jq -r '.[] | select(.tag_name != "'${TAG_NAME}'") | .id')
echo "Cleaning up old GitHub releases (keeping ${TAG_NAME})..."
OLD_RELEASES=$(curl -fsS -H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GITHUB_REPO}/releases" | jq -r --arg t "$TAG_NAME" '.[] | select(.tag_name != $t) | .id')
for OLD_ID in $OLD_RELEASES; do
echo "Deleting old GitHub release ${OLD_ID}..."
OLD_TAG=$(curl -s -H "Authorization: token ${GH_TOKEN}" \
[ -n "$OLD_ID" ] || continue
OLD_TAG=$(curl -fsS -H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GITHUB_REPO}/releases/${OLD_ID}" | jq -r '.tag_name')
# Delete release
curl -s -X DELETE -H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GITHUB_REPO}/releases/${OLD_ID}"
# Delete tag
if [ -n "$OLD_TAG" ]; then
echo "Deleting old GitHub tag ${OLD_TAG}..."
curl -s -X DELETE -H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GITHUB_REPO}/git/refs/tags/${OLD_TAG}"
echo "Deleting GitHub release ${OLD_ID} (${OLD_TAG})..."
curl -fsS -X DELETE -H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GITHUB_REPO}/releases/${OLD_ID}" >/dev/null || true
if [ -n "$OLD_TAG" ] && [ "$OLD_TAG" != "null" ]; then
curl -fsS -X DELETE -H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GITHUB_REPO}/git/refs/tags/${OLD_TAG}" >/dev/null || true
fi
done
# Check if release exists on GitHub
RELEASE_ID=$(curl -s -H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GITHUB_REPO}/releases/tags/${TAG_NAME}" | jq -r '.id // empty')
if [ -z "$RELEASE_ID" ]; then
echo "Creating new GitHub release for ${TAG_NAME}..."
RELEASE_ID=$(curl -s -X POST \
-H "Authorization: token ${GH_TOKEN}" \
-H "Content-Type: application/json" \
-d "{\"tag_name\": \"${TAG_NAME}\", \"name\": \"Release ${TAG_NAME}\", \"body\": \"Release ${VERSION}\", \"draft\": false, \"prerelease\": false}" \
"https://api.github.com/repos/${GITHUB_REPO}/releases" | jq -r '.id')
echo "Created GitHub release with ID: ${RELEASE_ID}"
else
echo "GitHub release exists with ID: ${RELEASE_ID}"
fi
# Upload assets to GitHub
echo "Uploading assets to GitHub..."
UPLOAD_URL=$(curl -s -H "Authorization: token ${GH_TOKEN}" \
"https://api.github.com/repos/${GITHUB_REPO}/releases/${RELEASE_ID}" | jq -r '.upload_url' | sed 's/{?name,label}//')
for FILE in release-files/*; do
FILENAME=$(basename "$FILE")
echo "Uploading ${FILENAME} to GitHub..."
curl -s -X POST \
-H "Authorization: token ${GH_TOKEN}" \
-H "Content-Type: application/octet-stream" \
--data-binary "@${FILE}" \
"${UPLOAD_URL}?name=${FILENAME}"
echo ""
done
echo "GitHub release complete!"
echo "Release finalize complete for ${TAG_NAME}"
+76
View File
@@ -0,0 +1,76 @@
name: Checks
on:
push:
branches:
- main
jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: false
fetch-depth: 1
- name: Checkout submodules manually
run: |
set -euo pipefail
# Use the same host/scheme the runner already used for origin (not public HTTPS).
ORIGIN_URL=$(git remote get-url origin)
ORIGIN_URL=${ORIGIN_URL%/}
ORIGIN_URL=${ORIGIN_URL%.git}
BASE_URL=${ORIGIN_URL%/*}
CINNY_URL="${BASE_URL}/cinny.git"
echo "Rewriting submodule URL to ${CINNY_URL}"
git config submodule.cinny.url "${CINNY_URL}"
git submodule sync --recursive
if git submodule update --init --recursive; then
echo "Submodules checked out at pinned commits."
exit 0
fi
echo "Pinned submodule commit is unavailable on remote. Falling back to remote submodule HEAD."
git submodule deinit -f --all || true
rm -rf cinny .git/modules/cinny
git config submodule.cinny.url "${CINNY_URL}"
git submodule sync --recursive
git submodule update --init --recursive --remote
echo "Resolved submodule commit:"
git -C cinny rev-parse HEAD
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
cache-dependency-path: cinny/package-lock.json
- name: Install dependencies (cinny)
working-directory: ./cinny
run: npm ci --prefer-offline
# ci-checks.sh always exits 0: findings become issues, not failed builds.
- name: Run checks
env:
API_BASE: ${{ github.server_url }}/api/v1
# github.server_url is the internal runner host, so the commit link needs the public one.
WEB_BASE: https://git.ruv.wtf
REPO: ${{ github.repository }}
SHA: ${{ github.sha }}
# Prefer a PAT with issue write scope (secret: GITEA_TOKEN).
# Default GITHUB_TOKEN is usually scoped to this repo only.
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
TOKEN="${GITEA_TOKEN:-${GITHUB_TOKEN:-}}"
if [ -z "$TOKEN" ]; then
echo "No GITEA_TOKEN/GITHUB_TOKEN available to file issues"
exit 0
fi
export TOKEN
bash cinny/scripts/ci-checks.sh
+35
View File
@@ -0,0 +1,35 @@
name: Update release notes manifest
on:
push:
paths:
- 'cinny/public/update/*.md'
- 'cinny/scripts/generate-update-manifest.mjs'
permissions:
contents: write
jobs:
manifest:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- name: Generate manifest.json
run: node cinny/scripts/generate-update-manifest.mjs
- name: Commit manifest if changed
run: |
if git diff --quiet -- cinny/public/update/manifest.json; then
echo "manifest.json unchanged"
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add cinny/public/update/manifest.json
git commit -m "chore: regenerate update manifest.json"
git push
+1 -1
View File
@@ -1,3 +1,3 @@
[submodule "cinny"]
path = cinny
url = http://synbox.ruv.wtf:8418/litruv/cinny.git
url = ../cinny.git
+10
View File
@@ -0,0 +1,10 @@
# Checks backlog
Lint and typecheck fix commits carry `[skip build]` in the commit message while
the `ci-checks` issues are being worked down across the cinny repos. The checks
workflow still runs; the Electron and mobile builds do not.
Honored in `cinny-desktop/.gitea/workflows/build.yml` and
`cinny-mobile/.gitea/workflows/build.yml`.
Do not use `[skip ci]` for these commits. It also suppresses the version bump.
+1 -1
View File
@@ -38,7 +38,7 @@ Paarrot includes a plugin system for extending and customising the app with Java
1. Drop a plugin folder into your plugins directory:
- **Windows**: `%APPDATA%\paarrot\plugins\<plugin-name>\`
- **Linux**: `~/.config/Paarrot/plugins/<plugin-name>/`
- **Linux**: `~/.config/Paarrot/plugins/<plugin-name>/` for the packaged app, `~/.config/paarrot/plugins/<plugin-name>/` when running from source
- **macOS**: `~/Library/Application Support/Paarrot/plugins/<plugin-name>/`
2. Enable it in **Settings → Plugins → Installed**
+1 -1
Submodule cinny updated: f62200ecd1...230ca4fcf0
+79 -1
View File
@@ -153,6 +153,72 @@ class PaarrotAPIServer {
}
});
// Recent messages across group channels (non-DMs)
this.app.get('/messages/groups', async (req, res) => {
try {
const result = await this.executeAction('get-messages-groups', {
limit: req.query.limit,
});
res.json({ success: true, data: result });
} catch (error) {
res.status(500).json({ success: false, error: error.message });
}
});
// Recent messages across DMs
this.app.get('/messages/dms', async (req, res) => {
try {
const result = await this.executeAction('get-messages-dms', {
limit: req.query.limit,
});
res.json({ success: true, data: result });
} catch (error) {
res.status(500).json({ success: false, error: error.message });
}
});
// Recent messages across groups + DMs
this.app.get('/messages/combined', async (req, res) => {
try {
const result = await this.executeAction('get-messages-combined', {
limit: req.query.limit,
});
res.json({ success: true, data: result });
} catch (error) {
res.status(500).json({ success: false, error: error.message });
}
});
// Unread conversations across group channels (non-DMs)
this.app.get('/unreads/groups', async (req, res) => {
try {
const result = await this.executeAction('get-unreads-groups');
res.json({ success: true, data: result });
} catch (error) {
res.status(500).json({ success: false, error: error.message });
}
});
// Unread conversations across DMs
this.app.get('/unreads/dms', async (req, res) => {
try {
const result = await this.executeAction('get-unreads-dms');
res.json({ success: true, data: result });
} catch (error) {
res.status(500).json({ success: false, error: error.message });
}
});
// Unread conversations across groups + DMs
this.app.get('/unreads/combined', async (req, res) => {
try {
const result = await this.executeAction('get-unreads-combined');
res.json({ success: true, data: result });
} catch (error) {
res.status(500).json({ success: false, error: error.message });
}
});
// 404 handler
this.app.use((req, res) => {
res.status(404).json({
@@ -169,7 +235,13 @@ class PaarrotAPIServer {
'GET /channels',
'POST /message',
'POST /message/current',
'GET /room/current'
'GET /room/current',
'GET /messages/groups',
'GET /messages/dms',
'GET /messages/combined',
'GET /unreads/groups',
'GET /unreads/dms',
'GET /unreads/combined'
]
});
});
@@ -237,6 +309,12 @@ class PaarrotAPIServer {
console.log(' POST /message');
console.log(' POST /message/current');
console.log(' GET /room/current');
console.log(' GET /messages/groups');
console.log(' GET /messages/dms');
console.log(' GET /messages/combined');
console.log(' GET /unreads/groups');
console.log(' GET /unreads/dms');
console.log(' GET /unreads/combined');
resolve(port);
}).on('error', (err) => {
if (err.code === 'EADDRINUSE') {
+122
View File
@@ -0,0 +1,122 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Debug Packets</title>
<style>
:root { color-scheme: dark; }
body { margin: 0; background: #14161a; color: #d9dce1; font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace; }
main { display: flex; flex-direction: column; height: 100vh; }
header { display: flex; gap: 8px; align-items: center; padding: 8px; border-bottom: 1px solid #262a31; flex-wrap: wrap; }
input[type="search"] { flex: 1 1 160px; min-width: 120px; background: #1b1f25; color: inherit; border: 1px solid #2b3038; border-radius: 4px; padding: 6px 8px; font: inherit; }
button { background: #1b1f25; color: inherit; border: 1px solid #2b3038; border-radius: 4px; padding: 6px 10px; font: inherit; cursor: pointer; }
button:hover { border-color: #3b424d; }
label { display: flex; gap: 6px; align-items: center; }
#count { color: #8b93a1; }
#list { flex: 1; overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 4px 8px; border-bottom: 1px solid #21252b; white-space: nowrap; }
th { position: sticky; top: 0; background: #171a1f; color: #8b93a1; }
tbody tr { cursor: pointer; }
tbody tr:hover, tbody tr.sel { background: #1b1f25; }
#detail { max-height: 40vh; overflow: auto; margin: 0; padding: 10px; border-top: 1px solid #262a31; white-space: pre-wrap; word-break: break-word; }
</style>
</head>
<body>
<main>
<header>
<input id="filter" type="search" placeholder="Filter (method, path, status, txnId, eventId, body)" aria-label="Filter packets">
<label><input id="autoscroll" type="checkbox" checked> Autoscroll</label>
<button id="clear">Clear</button>
<button id="copy">Copy all</button>
<button id="download">Download JSON lines</button>
<span id="count">0</span>
</header>
<div id="list">
<table>
<thead>
<tr><th>Time</th><th>Phase</th><th>Method</th><th>Path</th><th>Status</th><th>ms</th><th>txnId / eventId</th></tr>
</thead>
<tbody id="rows"></tbody>
</table>
</div>
<pre id="detail"></pre>
</main>
<script>
const MAX = 2000;
const packets = [];
const rows = document.getElementById('rows');
const list = document.getElementById('list');
const detail = document.getElementById('detail');
const filter = document.getElementById('filter');
const autoscroll = document.getElementById('autoscroll');
const count = document.getElementById('count');
const text = (v) => (v === undefined || v === null ? '' : String(v));
function matches(p) {
const q = filter.value.trim().toLowerCase();
if (!q) return true;
return [p.method, p.path, p.status, p.txnId, p.eventId, p.error, p.req, p.res]
.some((f) => text(f).toLowerCase().includes(q));
}
function addRow(p) {
const tr = document.createElement('tr');
[new Date(p.ts).toLocaleTimeString(), p.phase, p.method, p.path, p.status, p.ms, p.txnId || p.eventId]
.forEach((v) => {
const td = document.createElement('td');
td.textContent = text(v);
tr.appendChild(td);
});
tr.addEventListener('click', () => {
document.querySelectorAll('tr.sel').forEach((r) => r.classList.remove('sel'));
tr.classList.add('sel');
detail.textContent = JSON.stringify(p, null, 2);
});
rows.appendChild(tr);
}
function render() {
rows.textContent = '';
packets.filter(matches).forEach(addRow);
count.textContent = packets.length;
if (autoscroll.checked) list.scrollTop = list.scrollHeight;
}
function add(p) {
packets.push(p);
if (packets.length > MAX) packets.shift();
count.textContent = packets.length;
if (!matches(p)) return;
addRow(p);
if (autoscroll.checked) list.scrollTop = list.scrollHeight;
}
filter.addEventListener('input', render);
document.getElementById('clear').addEventListener('click', () => {
packets.length = 0;
detail.textContent = '';
render();
});
const lines = () => packets.map((p) => JSON.stringify(p)).join('\n');
document.getElementById('copy').addEventListener('click', () => {
window.electron?.clipboard?.writeText(lines());
});
document.getElementById('download').addEventListener('click', () => {
window.electron?.media?.saveFile({
filename: 'packets.jsonl',
mimeType: 'application/x-jsonlines',
data: lines(),
});
});
// Main sends the backlog as one batch (array), later packets one at a time
const unsubscribe = window.electron?.debug?.onPacket((data) => {
(Array.isArray(data) ? data : [data]).forEach(add);
});
window.addEventListener('beforeunload', () => unsubscribe?.());
</script>
</body>
</html>
+381
View File
@@ -0,0 +1,381 @@
/**
* Discord shop collectibles: fetch a published catalog and download selected assets from Discord CDN.
*/
const ITEM_TYPE_FOLDER = {
0: 'avatar-decorations',
1: 'profile-effects',
2: 'nameplates',
};
const ITEM_TYPE_KEY = {
0: 'avatar_decoration',
1: 'profile_effect',
2: 'nameplate',
};
const CDN_BASE = 'https://cdn.discordapp.com';
const CDN_HOST_RE = /(^|\.)(discordapp\.com|discordapp\.net|discord\.com)$/i;
const DEFAULT_USER_AGENT =
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) discord/1.0 Chrome/120 Electron/28 Safari/537.36';
const PUBLISHED_CATALOG_URLS = [
'https://github.com/litruv/discord-collectibles/releases/download/latest/profileeffects.json',
'https://github.com/litruv/discord-collectibles/releases/download/latest/nameplate.json',
'https://github.com/litruv/discord-collectibles/releases/download/latest/avatardecorations.json',
];
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
function isCdnUrl(value) {
if (typeof value !== 'string' || !value.startsWith('http')) return false;
try {
return CDN_HOST_RE.test(new URL(value).hostname);
} catch {
return false;
}
}
function basenameFromUrl(url) {
try {
const { pathname } = new URL(url);
const last = decodeURIComponent(pathname.split('/').filter(Boolean).pop() || '');
return last || 'asset';
} catch {
return 'asset';
}
}
function guessMimeType(filename) {
const lower = String(filename).toLowerCase();
if (lower.endsWith('.png')) return 'image/png';
if (lower.endsWith('.webp')) return 'image/webp';
if (lower.endsWith('.webm')) return 'video/webm';
if (lower.endsWith('.gif')) return 'image/gif';
if (lower.endsWith('.jpg') || lower.endsWith('.jpeg')) return 'image/jpeg';
return 'application/octet-stream';
}
function deepCollectUrls(node, acc = new Set()) {
if (node == null) return acc;
if (typeof node === 'string') {
if (isCdnUrl(node)) acc.add(node);
return acc;
}
if (Array.isArray(node)) {
for (const v of node) deepCollectUrls(v, acc);
return acc;
}
if (typeof node === 'object') {
for (const v of Object.values(node)) deepCollectUrls(v, acc);
}
return acc;
}
function urlsForItem(item) {
const out = [];
const seen = new Set();
function push(url, filename, role) {
if (!url || seen.has(url)) return;
seen.add(url);
out.push({ url, filename, role: role || filename });
}
for (const url of deepCollectUrls(item)) {
let role = basenameFromUrl(url);
if (item.thumbnailPreviewSrc === url) role = 'thumbnail';
else if (item.reducedMotionSrc === url) role = 'reduced_motion';
else if (Array.isArray(item.effects)) {
const effectIndex = item.effects.findIndex((effect) => effect?.src === url);
if (effectIndex >= 0) role = `effect_${effectIndex}`;
}
push(url, basenameFromUrl(url), role);
}
if (item.type === 0 && item.asset) {
const base = `${CDN_BASE}/avatar-decoration-presets/${item.asset}.png`;
push(`${base}?passthrough=true`, 'animated.png', 'animated');
push(`${base}?passthrough=false`, 'static.png', 'static');
}
if (item.type === 2 && item.asset) {
const assetPath = String(item.asset).replace(/^\/+/, '');
push(`${CDN_BASE}/assets/collectibles/${assetPath}static.png`, 'static.png', 'static');
push(`${CDN_BASE}/assets/collectibles/${assetPath}asset.webm`, 'asset.webm', 'animated');
}
return out;
}
function decimalRgbToCss(color) {
const value = Number(color) >>> 0;
const r = (value >> 16) & 0xff;
const g = (value >> 8) & 0xff;
const b = value & 0xff;
return `rgb(${r}, ${g}, ${b})`;
}
function gradientFromColors(colors) {
if (!Array.isArray(colors) || colors.length === 0) return undefined;
if (colors.length === 1) return decimalRgbToCss(colors[0]);
return `linear-gradient(135deg, ${decimalRgbToCss(colors[0])}, ${decimalRgbToCss(colors[1])})`;
}
function previewAspectRatioForItem(item) {
if (item.type === 0) return 1;
if (item.type === 2) return 448 / 84;
const firstEffect = item.effects?.[0];
if (firstEffect?.width && firstEffect?.height) {
return firstEffect.width / firstEffect.height;
}
return 450 / 880;
}
function formatPaletteName(palette) {
if (!palette) return undefined;
return String(palette)
.split('_')
.map((part) => part.charAt(0).toUpperCase() + part.slice(1))
.join(' ');
}
const NAMEPLATE_PALETTE_GRADIENTS = {
crimson: 'linear-gradient(135deg, #5c0a1c, #dc143c)',
berry: 'linear-gradient(135deg, #4a1030, #c42d78)',
sky: 'linear-gradient(135deg, #0a2a5c, #3b8eed)',
teal: 'linear-gradient(135deg, #0a3d3d, #2dd4bf)',
forest: 'linear-gradient(135deg, #0a2e1a, #22c55e)',
bubble_gum: 'linear-gradient(135deg, #4a1038, #f472b6)',
violet: 'linear-gradient(135deg, #2d1050, #8b5cf6)',
cobalt: 'linear-gradient(135deg, #0a1448, #3b5bdb)',
clover: 'linear-gradient(135deg, #0a3d20, #4ade80)',
lemon: 'linear-gradient(135deg, #4a3d0a, #fbbf24)',
white: 'linear-gradient(135deg, #888888, #f0f0f0)',
black: 'linear-gradient(135deg, #1a1a1a, #404040)',
};
function nameplatePaletteGradient(palette) {
if (!palette) return undefined;
return NAMEPLATE_PALETTE_GRADIENTS[palette];
}
function thumbnailForItem(item) {
if (item.thumbnailPreviewSrc && isCdnUrl(item.thumbnailPreviewSrc)) {
return item.thumbnailPreviewSrc;
}
if (item.type === 0 && item.asset) {
return `${CDN_BASE}/avatar-decoration-presets/${item.asset}.png?passthrough=false`;
}
if (item.type === 2 && item.asset) {
const assetPath = String(item.asset).replace(/^\/+/, '');
return `${CDN_BASE}/assets/collectibles/${assetPath}static.png`;
}
const assets = urlsForItem(item);
return assets[0]?.url;
}
function* walkProduct(product, category) {
yield { product, category };
for (const bundled of product.bundled_products ?? []) {
yield* walkProduct(bundled, category);
}
for (const variant of product.variants ?? []) {
yield* walkProduct(variant, category);
}
}
function* walkProducts(categories) {
for (const category of categories ?? []) {
for (const product of category.products ?? []) {
yield* walkProduct(product, category);
}
}
}
function extractCollectibleItems(categories) {
const items = [];
const seenItems = new Set();
for (const { product, category } of walkProducts(categories)) {
const categoryName = category?.name || 'Unknown';
for (const item of product.items ?? []) {
if (![0, 1, 2].includes(item.type)) continue;
const skuId = String(item.sku_id ?? item.id ?? product.sku_id ?? 'unknown');
const itemKey = `${item.type}:${skuId}:${item.id ?? ''}`;
if (seenItems.has(itemKey)) continue;
seenItems.add(itemKey);
const assets = urlsForItem(item);
if (assets.length === 0) continue;
const productName = product.name || item.title || item.label || skuId;
const typeKey = ITEM_TYPE_KEY[item.type];
const entry = {
id: `${typeKey}:${skuId}`,
skuId,
name: productName,
type: typeKey,
category: categoryName,
label: item.label ?? item.title ?? productName,
thumbnailUrl: thumbnailForItem(item),
previewAspectRatio: previewAspectRatioForItem(item),
previewColors: product.styles?.background_colors,
palette: item.type === 2 ? item.palette : undefined,
paletteLabel: item.type === 2 ? formatPaletteName(item.palette) : undefined,
previewGradient: item.type === 2 ? nameplatePaletteGradient(item.palette) : undefined,
assets: assets.map((a) => ({
role: a.role,
url: a.url,
filename: a.filename,
mimeType: guessMimeType(a.filename),
})),
};
if (item.type === 1) {
entry.effect = {
animationType: item.animationType,
thumbnailPreviewSrc: item.thumbnailPreviewSrc,
reducedMotionSrc: item.reducedMotionSrc,
effects: item.effects,
};
}
items.push(entry);
}
}
return items;
}
function isPublishedCatalog(document) {
return (
document &&
document.schema_version === 1 &&
typeof document.type === 'string' &&
Array.isArray(document.items) &&
document.items.every(
(item) =>
item &&
typeof item.id === 'string' &&
typeof item.skuId === 'string' &&
typeof item.type === 'string' &&
Array.isArray(item.assets)
)
);
}
async function fetchPublishedCatalog() {
const documents = await Promise.all(
PUBLISHED_CATALOG_URLS.map(async (url) => {
const response = await fetch(url, { headers: { Accept: 'application/json' } });
if (!response.ok) {
throw new Error(`Published collectibles catalog request failed with HTTP ${response.status}.`);
}
const document = await response.json();
if (!isPublishedCatalog(document)) {
throw new Error('Published collectibles catalog has an unsupported schema.');
}
return document;
})
);
const items = documents.flatMap((document) => document.items);
if (items.length === 0) {
throw new Error('Published collectibles catalog is empty.');
}
return items;
}
async function downloadAsset(url, { retries = 4 } = {}) {
for (let attempt = 0; ; attempt++) {
let res;
try {
res = await fetch(url, {
headers: { 'User-Agent': DEFAULT_USER_AGENT, Accept: '*/*' },
});
} catch (err) {
if (attempt >= retries) throw err;
await sleep(500 * 2 ** attempt);
continue;
}
if (res.status === 429) {
const retryAfter = Number(res.headers.get('retry-after')) || 1;
await sleep((retryAfter + 0.5) * 1000);
continue;
}
if (!res.ok) {
if (attempt >= retries) {
throw new Error(`Failed to download asset: ${res.status} ${res.statusText}`);
}
await sleep(500 * 2 ** attempt);
continue;
}
const buf = Buffer.from(await res.arrayBuffer());
return buf;
}
}
function createDiscordCollectiblesService(store) {
let catalogCache = store.get('discordCollectiblesCatalog') || null;
if (
!catalogCache ||
!Array.isArray(catalogCache.items) ||
typeof catalogCache.fetchedAt !== 'string'
) {
catalogCache = null;
}
let catalogCacheAt = catalogCache?.fetchedAt ? Date.parse(catalogCache.fetchedAt) : 0;
const CATALOG_TTL_MS = 6 * 60 * 60 * 1000;
store.delete('discordCollectiblesToken');
async function getCatalog({ force = false } = {}) {
const now = Date.now();
if (!force && catalogCache && now - catalogCacheAt < CATALOG_TTL_MS) {
return { success: true, data: catalogCache };
}
try {
const items = await fetchPublishedCatalog();
catalogCache = { items, fetchedAt: new Date().toISOString() };
catalogCacheAt = now;
store.set('discordCollectiblesCatalog', catalogCache);
return { success: true, data: catalogCache };
} catch (err) {
if (catalogCache) {
return {
success: true,
data: { ...catalogCache, stale: true },
};
}
return { success: false, error: err instanceof Error ? err.message : String(err) };
}
}
async function downloadAssets(assetUrls) {
const results = [];
for (const asset of assetUrls) {
const buffer = await downloadAsset(asset.url);
results.push({
role: asset.role,
url: asset.url,
filename: asset.filename,
mimeType: asset.mimeType || guessMimeType(asset.filename),
data: buffer,
});
}
return results;
}
return {
getCatalog,
downloadAssets,
ITEM_TYPE_FOLDER,
};
}
module.exports = { createDiscordCollectiblesService, extractCollectibleItems, urlsForItem };
+220 -25
View File
@@ -1,4 +1,4 @@
const { app, BrowserWindow, ipcMain, shell, Tray, Menu, nativeImage, clipboard, session, desktopCapturer } = require('electron');
const { app, BrowserWindow, ipcMain, shell, Tray, Menu, nativeImage, clipboard, session, desktopCapturer, dialog } = require('electron');
const path = require('path');
const fs = require('fs');
const { exec, execFile, execFileSync } = require('child_process');
@@ -8,6 +8,7 @@ const openPkg = require('open');
const open = openPkg.default;
const openApps = openPkg.apps;
const PaarrotAPIServer = require('./api-server');
const { createDiscordCollectiblesService } = require('./discord-collectibles');
const https = require('https');
const http = require('http');
const AdmZip = require('adm-zip');
@@ -104,6 +105,7 @@ function isAppOwnedUrl(targetUrl, currentUrl) {
const execAsync = promisify(exec);
const execFileAsync = promisify(execFile);
const store = new Store();
const discordCollectibles = createDiscordCollectiblesService(store);
const PROTOCOL_SCHEME = 'paarrot';
let mainWindow = null;
@@ -111,6 +113,9 @@ let tray = null;
let isQuitting = false;
let apiServer = null;
let pendingDeepLink = null;
let debugWindow = null;
const debugPacketBacklog = [];
const DEBUG_PACKET_LIMIT = 2000;
let protocolRegistrationState = {
before: false,
registerCall: false,
@@ -1275,13 +1280,103 @@ ipcMain.handle('open-external-url', async (event, url) => {
}
});
/**
* Save a media blob from the renderer via a native Save dialog.
* Payload: { filename, mimeType?, data: Uint8Array | ArrayBuffer | number[] }
*/
ipcMain.handle('media:save-file', async (event, payload = {}) => {
try {
const filename = typeof payload.filename === 'string' && payload.filename.trim()
? path.basename(payload.filename.trim()) || 'download'
: 'download';
const mimeType = typeof payload.mimeType === 'string' ? payload.mimeType : '';
const raw = payload.data;
if (!raw) {
return { success: false, error: 'Missing file data' };
}
const buffer = Buffer.from(
raw instanceof ArrayBuffer
? new Uint8Array(raw)
: ArrayBuffer.isView(raw)
? new Uint8Array(raw.buffer, raw.byteOffset, raw.byteLength)
: raw
);
const ext = path.extname(filename).replace(/^\./, '').toLowerCase();
const filters = (() => {
if (mimeType.startsWith('image/') || ['png', 'jpg', 'jpeg', 'gif', 'webp', 'bmp', 'svg'].includes(ext)) {
return [
{ name: 'Images', extensions: ['png', 'jpg', 'jpeg', 'gif', 'webp', 'bmp', 'svg'] },
{ name: 'All Files', extensions: ['*'] },
];
}
if (mimeType.startsWith('video/') || ['mp4', 'webm', 'mkv', 'mov'].includes(ext)) {
return [
{ name: 'Videos', extensions: ['mp4', 'webm', 'mkv', 'mov'] },
{ name: 'All Files', extensions: ['*'] },
];
}
if (mimeType.startsWith('audio/') || ['mp3', 'ogg', 'wav', 'm4a', 'flac'].includes(ext)) {
return [
{ name: 'Audio', extensions: ['mp3', 'ogg', 'wav', 'm4a', 'flac'] },
{ name: 'All Files', extensions: ['*'] },
];
}
if (mimeType === 'application/pdf' || ext === 'pdf') {
return [
{ name: 'PDF', extensions: ['pdf'] },
{ name: 'All Files', extensions: ['*'] },
];
}
if (ext) {
return [
{ name: ext.toUpperCase(), extensions: [ext] },
{ name: 'All Files', extensions: ['*'] },
];
}
return [{ name: 'All Files', extensions: ['*'] }];
})();
const win = BrowserWindow.fromWebContents(event.sender) || mainWindow;
const result = await dialog.showSaveDialog(win || undefined, {
title: 'Save file',
defaultPath: filename,
filters,
});
if (result.canceled || !result.filePath) {
return { success: true, canceled: true };
}
await fs.promises.writeFile(result.filePath, buffer);
return { success: true, path: result.filePath };
} catch (error) {
console.error('[media:save-file] failed:', error);
return { success: false, error: error.message || String(error) };
}
});
// Read clipboard image
ipcMain.handle('read-clipboard-image', async () => {
try {
// Extra Things: only trust an image when the clipboard actually advertises one.
// On Linux, readImage() can return a stale bitmap after copying plain text/URLs.
const formats = clipboard.availableFormats();
const hasImageFormat = formats.some((format) => format.startsWith('image/'));
if (!hasImageFormat) {
return { success: true, data: null };
}
const image = clipboard.readImage();
if (image.isEmpty()) {
return { success: true, data: null };
}
const { width, height } = image.getSize();
if (width < 2 || height < 2) {
return { success: true, data: null };
}
// Convert to PNG base64
const pngBuffer = image.toPNG();
@@ -1333,49 +1428,76 @@ ipcMain.handle('play-notification-sound', async (event, soundType = 'message') =
}
});
// Get YouTube stream using yt-dlp
ipcMain.handle('get-youtube-stream', async (event, url) => {
// Get a direct YouTube stream using yt-dlp.
async function getYouTubeStream(url) {
try {
// Check if yt-dlp is available
try {
await execAsync('yt-dlp --version');
await execFileAsync('yt-dlp', ['--version']);
} catch {
return {
success: false,
error: 'yt-dlp is not installed. Please install yt-dlp to use YouTube features.'
return {
success: false,
error: 'yt-dlp is not installed. Please install yt-dlp to use YouTube features.',
};
}
// Get title
let title = 'YouTube Video';
try {
const titleResult = await execAsync(`yt-dlp --get-title "${url}"`);
const titleResult = await execFileAsync('yt-dlp', ['--no-playlist', '--get-title', url]);
title = titleResult.stdout.trim();
} catch (e) {
console.warn('Failed to get video title:', e.message);
}
// Get video URL
const result = await execAsync(
`yt-dlp -g -f "best[height<=1080]/bestvideo[height<=1080]+bestaudio/best" "${url}"`
);
const result = await execFileAsync('yt-dlp', [
'--no-playlist',
'-g',
'-f',
'best[height<=1080]/bestvideo[height<=1080]+bestaudio/best',
url,
]);
const videoUrl = result.stdout.trim().split('\n')[0];
if (!videoUrl) {
return { success: false, error: 'yt-dlp returned empty URL' };
}
return {
success: true,
data: { video_url: videoUrl, title }
return {
success: true,
data: { video_url: videoUrl, title },
};
} catch (error) {
return {
success: false,
error: `yt-dlp error: ${error.message}`
return {
success: false,
error: `yt-dlp error: ${error.message}`,
};
}
}
// Get YouTube stream using yt-dlp
ipcMain.handle('get-youtube-stream', async (event, url) => {
return getYouTubeStream(url);
});
// TikTok oEmbed. TikTok blocks the Electron user agent, so this runs in the main
// process with a plain browser UA and is not subject to CORS.
ipcMain.handle('tiktok:oembed', async (event, url) => {
try {
const response = await fetch(`https://www.tiktok.com/oembed?url=${encodeURIComponent(url)}`, {
headers: {
'User-Agent':
'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36',
Accept: 'application/json',
},
});
if (!response.ok) {
console.warn('[tiktok:oembed]', response.status, url);
return null;
}
return await response.json();
} catch (error) {
console.warn('[tiktok:oembed] failed:', error?.message || error);
return null;
}
});
// Background sync stubs (desktop doesn't need it)
@@ -1661,7 +1783,7 @@ ipcMain.handle('plugin:download', async (event, { pluginId, downloadUrl, name })
});
}
}).on('error', (err) => {
fs.unlinkSync(tempZipPath);
fs.rmSync(tempZipPath, { force: true });
reject(err);
});
});
@@ -1691,13 +1813,14 @@ ipcMain.handle('plugin:download', async (event, { pluginId, downloadUrl, name })
}
}
// Move contents to final plugin directory
// Move contents to final plugin directory. renameSync throws EXDEV when
// temp and userData are on different filesystems (Linux: /tmp is tmpfs).
fs.mkdirSync(pluginDir, { recursive: true });
const files = fs.readdirSync(sourceDir);
for (const file of files) {
const srcPath = path.join(sourceDir, file);
const destPath = path.join(pluginDir, file);
fs.renameSync(srcPath, destPath);
fs.cpSync(srcPath, destPath, { recursive: true });
}
// Clean up temp extract dir
@@ -1811,6 +1934,78 @@ ipcMain.handle('plugin:read-code', async (event, pluginId) => {
}
});
ipcMain.handle('discord-collectibles:fetch-catalog', async (event, { force } = {}) => {
try {
return await discordCollectibles.getCatalog({ force: Boolean(force) });
} catch (error) {
return { success: false, error: error.message };
}
});
ipcMain.handle('discord-collectibles:download-assets', async (event, { assets }) => {
try {
if (!Array.isArray(assets) || assets.length === 0) {
return { success: false, error: 'No assets to download' };
}
const downloaded = await discordCollectibles.downloadAssets(assets);
return {
success: true,
data: downloaded.map((item) => ({
role: item.role,
url: item.url,
filename: item.filename,
mimeType: item.mimeType,
data: item.data,
})),
};
} catch (error) {
return { success: false, error: error.message };
}
});
// Debug packet window
ipcMain.handle('debug:open-window', () => {
if (debugWindow && !debugWindow.isDestroyed()) {
debugWindow.focus();
return { success: true };
}
debugWindow = new BrowserWindow({
width: 900,
height: 600,
title: 'Debug Packets',
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
contextIsolation: true,
nodeIntegration: false,
webSecurity: true
}
});
debugWindow.on('closed', () => {
debugWindow = null;
});
// Send the backlog as one batch once the page has registered its listener
debugWindow.webContents.on('did-finish-load', () => {
debugWindow.webContents.send('debug:packet', debugPacketBacklog);
});
debugWindow.loadFile(path.join(__dirname, 'debug.html'));
return { success: true };
});
ipcMain.on('debug:packet', (event, packet) => {
if (!packet || typeof packet !== 'object') return;
debugPacketBacklog.push(packet);
if (debugPacketBacklog.length > DEBUG_PACKET_LIMIT) debugPacketBacklog.shift(); // Keep last 2000
if (debugWindow && !debugWindow.isDestroyed()) {
debugWindow.webContents.send('debug:packet', packet);
}
});
console.log('Paarrot Electron main process started');
console.log('Development mode:', isDev);
console.log('Platform:', process.platform);
+29 -1
View File
@@ -104,6 +104,12 @@ contextBridge.exposeInMainWorld('electron', {
readImage: () => ipcRenderer.invoke('read-clipboard-image'),
writeText: (text) => ipcRenderer.invoke('write-clipboard-text', text)
},
// Media save (native Save dialog for images / videos / files)
media: {
saveFile: ({ filename, mimeType, data }) =>
ipcRenderer.invoke('media:save-file', { filename, mimeType, data }),
},
// Audio
audio: {
playNotificationSound: (soundType = 'message') => ipcRenderer.invoke('play-notification-sound', soundType),
@@ -118,6 +124,11 @@ contextBridge.exposeInMainWorld('electron', {
youtube: {
getStream: (url) => ipcRenderer.invoke('get-youtube-stream', url)
},
// TikTok oEmbed (fetched in the main process)
tiktok: {
getOEmbed: (url) => ipcRenderer.invoke('tiktok:oembed', url)
},
// Background sync (stubs for desktop)
sync: {
@@ -174,6 +185,17 @@ contextBridge.exposeInMainWorld('electron', {
}
},
// Debug packet recorder
debug: {
openWindow: () => ipcRenderer.invoke('debug:open-window'),
send: (packet) => ipcRenderer.send('debug:packet', packet),
onPacket: (callback) => {
const handler = (_, data) => callback(data);
ipcRenderer.on('debug:packet', handler);
return () => ipcRenderer.removeListener('debug:packet', handler);
}
},
// Plugin management
plugins: {
getPath: () => ipcRenderer.invoke('plugin:get-path'),
@@ -187,7 +209,13 @@ contextBridge.exposeInMainWorld('electron', {
protocol: {
getStatus: () => ipcRenderer.invoke('protocol:get-status'),
repair: () => ipcRenderer.invoke('protocol:repair')
}
},
// Discord shop collectibles (published catalog + on-demand CDN download)
discordCollectibles: {
fetchCatalog: (force = false) => ipcRenderer.invoke('discord-collectibles:fetch-catalog', { force }),
downloadAssets: (assets) => ipcRenderer.invoke('discord-collectibles:download-assets', { assets }),
},
});
// Preload script ready
+75
View File
@@ -208,6 +208,81 @@
{
"name": "Messaging",
"item": [
{
"name": "Get Group Messages",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/messages/groups?limit=10",
"host": [
"{{baseUrl}}"
],
"path": [
"messages",
"groups"
],
"query": [
{
"key": "limit",
"value": "10",
"description": "Number of recent messages (1-100, default 10)"
}
]
},
"description": "Get the most recent messages across joined group channels (non-DMs)."
}
},
{
"name": "Get DM Messages",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/messages/dms?limit=10",
"host": [
"{{baseUrl}}"
],
"path": [
"messages",
"dms"
],
"query": [
{
"key": "limit",
"value": "10",
"description": "Number of recent messages (1-100, default 10)"
}
]
},
"description": "Get the most recent messages across joined direct messages."
}
},
{
"name": "Get Combined Messages",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{baseUrl}}/messages/combined?limit=10",
"host": [
"{{baseUrl}}"
],
"path": [
"messages",
"combined"
],
"query": [
{
"key": "limit",
"value": "10",
"description": "Number of recent messages (1-100, default 10)"
}
]
},
"description": "Get the most recent messages across groups and DMs together."
}
},
{
"name": "Send Message to Room",
"request": {
+5 -4
View File
@@ -1,6 +1,6 @@
{
"name": "paarrot",
"version": "4.11.163",
"version": "4.11.220",
"description": "Paarrot - A Matrix client based on Cinny",
"homepage": "https://github.com/Paarrot/Paarrot-Desktop",
"repository": {
@@ -15,11 +15,12 @@
"dev": "concurrently \"npm run dev:vite\" \"npm run dev:electron\"",
"dev:vite": "cross-env BROWSER=none sh -c 'cd cinny && npm start'",
"dev:electron": "wait-on http://localhost:38347 && cross-env NODE_ENV=development electron .",
"build": "node -e \"require('fs').copyFileSync('config.json', 'cinny/config.json')\" && cd cinny && npm run build && cd .. && electron-builder --publish always",
"build:local": "node -e \"require('fs').copyFileSync('config.json', 'cinny/config.json')\" && cd cinny && npm run build && cd .. && electron-builder",
"build": "node scripts/generate-update-manifest.mjs && node -e \"require('fs').copyFileSync('config.json', 'cinny/config.json')\" && cd cinny && npm run build && cd .. && electron-builder --publish always",
"build:local": "node scripts/generate-update-manifest.mjs && node -e \"require('fs').copyFileSync('config.json', 'cinny/config.json')\" && cd cinny && npm run build && cd .. && electron-builder",
"build:linux": "npm run build -- --linux",
"build:win": "npm run build -- --win",
"postman:generate": "node scripts/generate-postman-collection.js"
"postman:generate": "node scripts/generate-postman-collection.js",
"generate:update-manifest": "node scripts/generate-update-manifest.mjs"
},
"keywords": [],
"author": {
+81
View File
@@ -164,6 +164,87 @@ const collection = {
{
name: 'Messaging',
item: [
{
name: 'Get Group Messages',
request: {
method: 'GET',
header: [],
url: {
raw: '{{baseUrl}}/messages/groups?limit=10',
host: ['{{baseUrl}}'],
path: ['messages', 'groups'],
query: [{ key: 'limit', value: '10', description: 'Number of recent messages (1-100, default 10)' }],
},
description: 'Get the most recent messages across joined group channels (non-DMs).',
},
},
{
name: 'Get DM Messages',
request: {
method: 'GET',
header: [],
url: {
raw: '{{baseUrl}}/messages/dms?limit=10',
host: ['{{baseUrl}}'],
path: ['messages', 'dms'],
query: [{ key: 'limit', value: '10', description: 'Number of recent messages (1-100, default 10)' }],
},
description: 'Get the most recent messages across joined direct messages.',
},
},
{
name: 'Get Combined Messages',
request: {
method: 'GET',
header: [],
url: {
raw: '{{baseUrl}}/messages/combined?limit=10',
host: ['{{baseUrl}}'],
path: ['messages', 'combined'],
query: [{ key: 'limit', value: '10', description: 'Number of recent messages (1-100, default 10)' }],
},
description: 'Get the most recent messages across groups and DMs together.',
},
},
{
name: 'Get Group Unreads',
request: {
method: 'GET',
header: [],
url: {
raw: '{{baseUrl}}/unreads/groups',
host: ['{{baseUrl}}'],
path: ['unreads', 'groups'],
},
description: 'List unread group conversations (non-DMs), including counts and latest message preview.',
},
},
{
name: 'Get DM Unreads',
request: {
method: 'GET',
header: [],
url: {
raw: '{{baseUrl}}/unreads/dms',
host: ['{{baseUrl}}'],
path: ['unreads', 'dms'],
},
description: 'List unread DM conversations, including counts and latest message preview.',
},
},
{
name: 'Get Combined Unreads',
request: {
method: 'GET',
header: [],
url: {
raw: '{{baseUrl}}/unreads/combined',
host: ['{{baseUrl}}'],
path: ['unreads', 'combined'],
},
description: 'List unread conversations across groups and DMs.',
},
},
{
name: 'Send Message to Room',
request: {
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/env node
/**
* Desktop repo wrapper — manifest generator lives in cinny/scripts/.
*/
import { spawnSync } from 'child_process';
import path from 'path';
import { fileURLToPath } from 'url';
const script = path.join(
path.dirname(fileURLToPath(import.meta.url)),
'..',
'cinny',
'scripts',
'generate-update-manifest.mjs'
);
const result = spawnSync(process.execPath, [script], { stdio: 'inherit' });
process.exit(result.status ?? 1);
+11
View File
@@ -18,6 +18,17 @@
"updater:allow-download",
"updater:allow-download-and-install",
"dialog:default",
"fs:default",
"fs:allow-write-file",
{
"identifier": "fs:scope",
"allow": [
{ "path": "$HOME/**" },
{ "path": "$DOWNLOAD/**" },
{ "path": "$DESKTOP/**" },
{ "path": "$DOCUMENT/**" }
]
},
"process:allow-restart",
{
"identifier": "http:default",
+10
View File
@@ -60,6 +60,16 @@ async function runTests() {
// Get current room
await testEndpoint('Get Current Room', 'GET', '/room/current');
// Recent messages by scope
await testEndpoint('Get Group Messages', 'GET', '/messages/groups');
await testEndpoint('Get DM Messages', 'GET', '/messages/dms');
await testEndpoint('Get Combined Messages', 'GET', '/messages/combined?limit=10');
// Unread conversations by scope
await testEndpoint('Get Group Unreads', 'GET', '/unreads/groups');
await testEndpoint('Get DM Unreads', 'GET', '/unreads/dms');
await testEndpoint('Get Combined Unreads', 'GET', '/unreads/combined');
// Toggle mute
await testEndpoint('Toggle Mute', 'POST', '/mute/toggle');