[GH-ISSUE #116] 🗺️ Roadmap: Restructure App #11

Closed
opened 2026-03-02 23:31:11 +03:00 by kerem · 0 comments
Owner

Originally created by @Aetherinox on GitHub (Jun 25, 2025).
Original GitHub issue: https://github.com/Aetherinox/ntfy-desktop/issues/116

Originally assigned to: @Aetherinox on GitHub.

Summary

Finishing the task #88 has resulted in numerous new files, including a renderer.js and preload.js. This roadmap item proposes that the structure of the entire ntfy desktop app needs to be re-structured.

Having every single ntfy electron file in the root folder becomes cluttered and is not easily understandable.


Tasks

  • Create new src/ folder
    • Create new classes/ folder
      • Log.js
      • Storage.js
    • Home directory of src/ should contain:
      • main.js
      • renderer.js
      • preload.js
    • Main package.json should be placed in src/ folder
  • Create package.json in parent of sub/ folder which strictly handles the script all-contributors
  • Main package.json in src/ folder
  • Re-write build.sh and build.bat
    • Generate binaries in app home folder outside of src/
    • Fix bug with MacOSX / Darwin builds being created on Windows machine
      • Use tar -czf instead of powershell Compress-Archive
    • Fix bug where build will not continue if build/ntfy-desktop-*-arch folder does not already exist
  • Main menu need moved to individual file.
    • Keeping the electron menu arrays in the main file creates loads of extra code when it doesn't need to be looked at every single day. Migrate the menu to an independent file away from the every-day functionality.

Resources

  • None

References:

Originally created by @Aetherinox on GitHub (Jun 25, 2025). Original GitHub issue: https://github.com/Aetherinox/ntfy-desktop/issues/116 Originally assigned to: @Aetherinox on GitHub. ## Summary Finishing the task #88 has resulted in numerous new files, including a `renderer.js` and `preload.js`. This roadmap item proposes that the structure of the entire ntfy desktop app needs to be re-structured. Having every single ntfy electron file in the root folder becomes cluttered and is not easily understandable. <br /> ### Tasks - [x] Create new `src/` folder - [x] Create new `classes/` folder - [x] `Log.js` - [x] `Storage.js` - [x] Home directory of `src/` should contain: - [x] `main.js` - [x] `renderer.js` - [x] `preload.js` - [x] Main `package.json` should be placed in `src/` folder - [x] Create `package.json` in parent of `sub/` folder which strictly handles the script `all-contributors` - [x] Main `package.json` in `src/` folder - [x] Re-write `build.sh` and `build.bat` - [x] Generate binaries in app home folder outside of `src/` - [x] Fix bug with MacOSX / Darwin builds being created on Windows machine - [x] Use `tar -czf` instead of `powershell Compress-Archive` - [x] Fix bug where build will not continue if `build/ntfy-desktop-*-arch` folder does not already exist - [x] Main menu need moved to individual file. - Keeping the electron menu arrays in the main file creates loads of extra code when it doesn't need to be looked at every single day. Migrate the menu to an independent file away from the every-day functionality. <br /> ### Resources - None <br /> ### References: - #88
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
starred/ntfy-desktop#11
No description provided.