A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.
Swift ai-agentsanthropicantigravityclaudeclaude-codecodexcursordynamic-islandgemini-cliiosiphonlinuxmacosmacos-appmenubar-appnotchopen-sourceswiftswiftuiwindows
Windows: npm run pack, so the installer lands somewhere you can find it
Louis Raille7998df0b0b9a
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.ymlindex 76986ea1..669b7ecd 100644--- a/.github/workflows/windows.yml+++ b/.github/workflows/windows.yml@@ -41,29 +41,30 @@ jobs:- name: Install dependenciesrun: npm ci- # `npm run build` (run by tauri as beforeBuildCommand) builds coucou-hook- # first, which tauri.conf.json then bundles as a resource.- - name: Build the installer- run: npm run tauri build+ - name: Check the tag matches the app version+ if: startsWith(github.ref, 'refs/tags/windows-v')+ shell: pwsh+ run: |+ $tag = "${{ github.ref_name }}" -replace '^windows-v', ''+ $conf = (Get-Content src-tauri/tauri.conf.json | ConvertFrom-Json).version+ if ($tag -ne $conf) { throw "tag says $tag but tauri.conf.json says $conf" }- - name: Name the installer+ # `npm run build` (run by tauri as beforeBuildCommand) builds coucou-hook+ # first, which tauri.conf.json then bundles as a resource. `pack` then+ # copies the installer out of target/ under its shipping name.+ - name: Build and pack the installerid: packshell: pwshrun: |- $version = "${{ github.ref_name }}" -replace '^windows-v', ''- if (-not $version) { $version = (Get-Content src-tauri/tauri.conf.json | ConvertFrom-Json).version }- $built = Get-ChildItem target/release/bundle/nsis/*-setup.exe | Select-Object -First 1- if (-not $built) { throw "no NSIS installer was produced" }- New-Item -ItemType Directory -Force out | Out-Null- Copy-Item $built "out/Coucou-Windows-$version-setup.exe"- Copy-Item $built "out/Coucou-Windows-setup.exe"+ npm run pack+ $version = (Get-Content src-tauri/tauri.conf.json | ConvertFrom-Json).version"version=$version" >> $env:GITHUB_OUTPUT- Get-ChildItem out | Format-Table Name, Length+ Get-ChildItem release | Format-Table Name, Length- uses: actions/upload-artifact@v4with:name: Coucou-Windows-setup- path: windows/out/Coucou-Windows-${{ steps.pack.outputs.version }}-setup.exe+ path: windows/release/Coucou-Windows-${{ steps.pack.outputs.version }}-setup.exe- name: Publish the releaseif: startsWith(github.ref, 'refs/tags/windows-v')@@ -80,7 +81,7 @@ jobs:**More info → Run anyway**."@gh release create "${{ github.ref_name }}" `- "out/Coucou-Windows-$v-setup.exe" `+ "release/Coucou-Windows-$v-setup.exe" `--title "Coucou for Windows $v" `--notes $notes@@ -94,10 +95,10 @@ jobs:$exists = gh release view windows-latest 2>$nullif ($LASTEXITCODE -eq 0) {gh release edit windows-latest --title "Coucou for Windows (latest)" --notes "Always the newest Windows build — currently $v."- gh release upload windows-latest "out/Coucou-Windows-setup.exe" --clobber+ gh release upload windows-latest "release/Coucou-Windows-setup.exe" --clobber} else {gh release create windows-latest `- "out/Coucou-Windows-setup.exe" `+ "release/Coucou-Windows-setup.exe" `--title "Coucou for Windows (latest)" `--notes "Always the newest Windows build — currently $v." `--latest=falsediff --git a/windows/.gitignore b/windows/.gitignoreindex 25a86a8b..359c1964 100644--- a/windows/.gitignore+++ b/windows/.gitignore@@ -1,7 +1,7 @@node_modules/dist/target/-out/+release/*.tsbuildinfo# Generated by tauri-build on every compilediff --git a/windows/README.md b/windows/README.mdindex 2a48cecc..36157e97 100644--- a/windows/README.md+++ b/windows/README.md@@ -94,9 +94,21 @@ C++"). WebView2 ships with Windows 10/11.cd windowsnpm installnpm run tauri dev # live-reloading development build-npm run tauri build # installer in target/release/bundle/nsis/+npm run pack # builds the installer and drops it in windows/release/```+`npm run pack` leaves two files in `windows/release/`, the same names the release+workflow publishes:++```+Coucou-Windows-0.1.0-setup.exe the versioned installer+Coucou-Windows-setup.exe the same file under the rolling name+```++Installing is optional — `target/release/coucou.exe` runs on its own. There is no+window in the taskbar and no console: the island at the top of the screen and the+Mochi in the notification area are the whole app, and Quit lives in its menu.+The 28 sounds are the macOS app's own files; they are never duplicated in thisfolder. The path is declared once, in `SOUNDS_DIR` at the top of`vite.config.ts` — when they move to `shared/sounds/`, change that one line.diff --git a/windows/package.json b/windows/package.jsonindex 27572ff4..cc533b1b 100644--- a/windows/package.json+++ b/windows/package.json@@ -10,7 +10,8 @@"icons": "node scripts/gen-icons.mjs","tauri": "tauri","predev": "cargo build --release -p coucou-hook",- "prebuild": "cargo build --release -p coucou-hook"+ "prebuild": "cargo build --release -p coucou-hook",+ "pack": "tauri build && node scripts/pack.mjs"},"devDependencies": {"@tauri-apps/cli": "^2",diff --git a/windows/scripts/pack.mjs b/windows/scripts/pack.mjsnew file mode 100644index 00000000..743f1e10--- /dev/null+++ b/windows/scripts/pack.mjs@@ -0,0 +1,41 @@+// Copies the installer Tauri buries in target/release/bundle/nsis/ into+// windows/release/, with the name it ships under. Used by `npm run pack` and by+// the release workflow, so both produce exactly the same file names.++import { readFileSync, mkdirSync, copyFileSync, readdirSync, statSync } from "node:fs";+import { dirname, join, resolve } from "node:path";+import { fileURLToPath } from "node:url";++const root = resolve(dirname(fileURLToPath(import.meta.url)), "..");+const bundleDir = join(root, "target", "release", "bundle", "nsis");+const outDir = join(root, "release");++const { version } = JSON.parse(readFileSync(join(root, "src-tauri", "tauri.conf.json"), "utf8"));++let installers = [];+try {+ installers = readdirSync(bundleDir).filter((f) => f.endsWith("-setup.exe"));+} catch {+ console.error(`No installer in ${bundleDir} — run \`npm run tauri build\` first.`);+ process.exit(1);+}+if (installers.length === 0) {+ console.error(`No installer in ${bundleDir} — run \`npm run tauri build\` first.`);+ process.exit(1);+}++// Newest wins, in case an older build is still lying around.+const built = installers+ .map((f) => join(bundleDir, f))+ .sort((a, b) => statSync(b).mtimeMs - statSync(a).mtimeMs)[0];++mkdirSync(outDir, { recursive: true });+const versioned = join(outDir, `Coucou-Windows-${version}-setup.exe`);+const rolling = join(outDir, "Coucou-Windows-setup.exe");+copyFileSync(built, versioned);+copyFileSync(built, rolling);++const mb = (statSync(versioned).size / 1024 / 1024).toFixed(2);+console.log(`\n Installer ready — ${mb} MB\n`);+console.log(` ${versioned}`);+console.log(` ${rolling}\n`);