[PR #284] [MERGED] refactor: group Windows-specific files under win/ #4546

Closed
opened 2026-10-22 04:08:36 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/284
Author: @LukaTheHero
Created: 4/28/2026
Status: ✅ Merged
Merged: 4/28/2026
Merged by: @LukaTheHero

Base: main ← Head: refactor/group-windows-files-under-win


📝 Commits (4)

  • 9d1bcf8 refactor: group Windows-specific files under win/
  • 8065c67 docs: Update CONTRIBUTING.md
  • 6b5c44e docs(contributing): add a slash
  • 3d62a4d Merge branch 'main' into refactor/group-windows-files-under-win

📊 Changes

15 files changed (+34 additions, -23 deletions)

View changed files

📝 .github/labeler.yml (+4 -2)
📝 .github/workflows/build-container.yml (+2 -1)
📝 .github/workflows/pull-request-checks.yml (+2 -1)
📝 .gitignore (+1 -1)
📝 CLAUDE.md (+2 -2)
📝 CONTRIBUTING.md (+5 -5)
📝 packages/server/src/services/setup/taskbar-shortcut-migration.ts (+15 -8)
📝 scripts/check-tracked-installers.mjs (+1 -1)
📝 scripts/versioning.mjs (+2 -2)
📝 win/installer/app-icon.ico (+0 -0)
📝 win/installer/gen-ico.py (+0 -0)
📝 win/installer/install.bat (+0 -0)
📝 win/installer/installer.nsi (+0 -0)
📝 win/launcher/Program.cs (+0 -0)
📝 win/launcher/build.ps1 (+0 -0)

📄 Description

Summary

Addresses OceanBby's review comment on #277: Windows-specific tooling lived scattered across the repo (installer/ at root, tools/win-launcher/ under a generic tools/ dir). Mirroring the android/ pattern, this consolidates everything Windows-specific under a single win/ subtree.

installer/         →  win/installer/   (NSIS source, install.bat, app-icon.ico, gen-ico.py)
tools/win-launcher →  win/launcher/    (Program.cs + build.ps1 for MarinaraLauncher.exe)

Files that intentionally remain at the repo root:

  • start.bat — user-facing entry point; existing Start Menu / Desktop shortcuts target it by absolute path.
  • MarinaraLauncher.exe — committed binary; existing migrated shortcuts reference it by absolute path.

Touch list

  • CI: paths-ignore in build-container.yml and pull-request-checks.yml now exclude win/** + MarinaraLauncher.exe instead of installer/** (covers OceanBby's existing container exclusion plus the previously-uncovered launcher source).
  • Labeler: renamed the installer label to windows; glob covers win/**, MarinaraLauncher.exe, start.bat.
  • Migration (packages/server/src/services/setup/taskbar-shortcut-migration.ts):
    • Icon path is now <installDir>/win/installer/app-icon.ico.
    • Self-heal extended — shortcuts whose IconLocation still references the legacy <installDir>/installer/app-icon.ico path are auto-repaired on next server boot. Users who already migrated under the pre-win/ layout don't need any manual action.
  • Version sync (scripts/versioning.mjs) and the installer-artifact guard (scripts/check-tracked-installers.mjs) updated to point at win/installer/*.
  • Docs: CLAUDE.md "Version Truth" + CONTRIBUTING.md release table reference win/installer/installer.nsi and win/installer/install.bat.
  • .gitignore: tracked-installer rule is now win/installer/*.exe.

git mv was used throughout, so file history is preserved.

Manual verification

  • Pull this branch into an install dir → run start.bat → server still boots and migration still runs.
  • Confirm Start Menu shortcut's Target = MarinaraLauncher.exe and IconLocation = <installDir>\win\installer\app-icon.ico,0.
  • Self-heal: artificially set a Start Menu .lnk's IconLocation to the legacy <installDir>\installer\app-icon.ico,0 path → re-launch → on next boot, migration auto-repairs to the win/ location.
  • Pin migrated shortcut → click → console groups under the pinned icon (no functional change vs. pre-refactor).
  • pnpm version:check and pnpm guard:installer-artifacts pass.
  • Push a no-op commit touching only win/installer/installer.nsi and confirm Build & Push Container Image is skipped (paths-ignore working).

Note

No functional change for end users — same migration behavior, same launcher binary at the same install-root path. Pure repo reorganization to keep Windows-specific files together (matches android/ convention).

No linked issue. Direct follow-up to the review thread on #277.

Summary by CodeRabbit

  • Bug Fixes

    • Improved taskbar shortcut migration to better detect and restore missing or legacy icon references for existing shortcuts.
  • Chores

    • Updated CI triggers, repository labeling, ignore rules, version-sync checks, and contributor guidance to reflect relocated Windows installer assets and build inputs.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/284 **Author:** [@LukaTheHero](https://github.com/LukaTheHero) **Created:** 4/28/2026 **Status:** ✅ Merged **Merged:** 4/28/2026 **Merged by:** [@LukaTheHero](https://github.com/LukaTheHero) **Base:** `main` ← **Head:** `refactor/group-windows-files-under-win` --- ### 📝 Commits (4) - [`9d1bcf8`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9d1bcf8ac9852d890d91d26fbede40b947d96c52) refactor: group Windows-specific files under win/ - [`8065c67`](https://github.com/Pasta-Devs/Marinara-Engine/commit/8065c670a4b6dcd79f7f45ce43502cd8afeef812) docs: Update CONTRIBUTING.md - [`6b5c44e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6b5c44eb46c2cc47d383e2dd9e87e09b76527e36) docs(contributing): add a slash - [`3d62a4d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3d62a4df04a78765302f2c9040788e2d9d7ad03b) Merge branch 'main' into refactor/group-windows-files-under-win ### 📊 Changes **15 files changed** (+34 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `.github/labeler.yml` (+4 -2) 📝 `.github/workflows/build-container.yml` (+2 -1) 📝 `.github/workflows/pull-request-checks.yml` (+2 -1) 📝 `.gitignore` (+1 -1) 📝 `CLAUDE.md` (+2 -2) 📝 `CONTRIBUTING.md` (+5 -5) 📝 `packages/server/src/services/setup/taskbar-shortcut-migration.ts` (+15 -8) 📝 `scripts/check-tracked-installers.mjs` (+1 -1) 📝 `scripts/versioning.mjs` (+2 -2) 📝 `win/installer/app-icon.ico` (+0 -0) 📝 `win/installer/gen-ico.py` (+0 -0) 📝 `win/installer/install.bat` (+0 -0) 📝 `win/installer/installer.nsi` (+0 -0) 📝 `win/launcher/Program.cs` (+0 -0) 📝 `win/launcher/build.ps1` (+0 -0) </details> ### 📄 Description ## Summary Addresses [OceanBby's review comment](https://github.com/Pasta-Devs/Marinara-Engine/pull/277) on #277: Windows-specific tooling lived scattered across the repo (`installer/` at root, `tools/win-launcher/` under a generic `tools/` dir). Mirroring the `android/` pattern, this consolidates everything Windows-specific under a single `win/` subtree. ``` installer/ → win/installer/ (NSIS source, install.bat, app-icon.ico, gen-ico.py) tools/win-launcher → win/launcher/ (Program.cs + build.ps1 for MarinaraLauncher.exe) ``` **Files that intentionally remain at the repo root:** - `start.bat` — user-facing entry point; existing Start Menu / Desktop shortcuts target it by absolute path. - `MarinaraLauncher.exe` — committed binary; existing migrated shortcuts reference it by absolute path. ## Touch list - **CI**: `paths-ignore` in `build-container.yml` and `pull-request-checks.yml` now exclude `win/**` + `MarinaraLauncher.exe` instead of `installer/**` (covers OceanBby's existing container exclusion plus the previously-uncovered launcher source). - **Labeler**: renamed the `installer` label to `windows`; glob covers `win/**`, `MarinaraLauncher.exe`, `start.bat`. - **Migration** (`packages/server/src/services/setup/taskbar-shortcut-migration.ts`): - Icon path is now `<installDir>/win/installer/app-icon.ico`. - Self-heal extended — shortcuts whose `IconLocation` still references the legacy `<installDir>/installer/app-icon.ico` path are auto-repaired on next server boot. Users who already migrated under the pre-`win/` layout don't need any manual action. - **Version sync** (`scripts/versioning.mjs`) and the **installer-artifact guard** (`scripts/check-tracked-installers.mjs`) updated to point at `win/installer/*`. - **Docs**: `CLAUDE.md` "Version Truth" + `CONTRIBUTING.md` release table reference `win/installer/installer.nsi` and `win/installer/install.bat`. - **`.gitignore`**: tracked-installer rule is now `win/installer/*.exe`. `git mv` was used throughout, so file history is preserved. ## Manual verification - [ ] Pull this branch into an install dir → run `start.bat` → server still boots and migration still runs. - [ ] Confirm Start Menu shortcut's `Target` = `MarinaraLauncher.exe` and `IconLocation` = `<installDir>\win\installer\app-icon.ico,0`. - [ ] Self-heal: artificially set a Start Menu `.lnk`'s `IconLocation` to the legacy `<installDir>\installer\app-icon.ico,0` path → re-launch → on next boot, migration auto-repairs to the `win/` location. - [ ] Pin migrated shortcut → click → console groups under the pinned icon (no functional change vs. pre-refactor). - [ ] `pnpm version:check` and `pnpm guard:installer-artifacts` pass. - [ ] Push a no-op commit touching only `win/installer/installer.nsi` and confirm `Build & Push Container Image` is skipped (paths-ignore working). ## Note No functional change for end users — same migration behavior, same launcher binary at the same install-root path. Pure repo reorganization to keep Windows-specific files together (matches `android/` convention). No linked issue. Direct follow-up to the review thread on #277. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Improved taskbar shortcut migration to better detect and restore missing or legacy icon references for existing shortcuts. * **Chores** * Updated CI triggers, repository labeling, ignore rules, version-sync checks, and contributor guidance to reflect relocated Windows installer assets and build inputs. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-22 04:08:36 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4546
No description provided.