AFFiNE/packages/frontend/electron/scripts
pengx17 0b380f94c7
build(electron): add nsis script for windows installer (#6674)
This pr only includes how to bundle the app into an installer after package step.

todo (not in this pr)
- [ ] make sure updater can work for both nsis & squirrel
- [ ] integrate nsis build into github action workflow

Advantage over Squirrel:
- allowing user to specify the installation location
- better uninstaller

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/b75f1076-62e7-445c-bbf9-d7be00dbfc59.png)

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/c9ddc58c-512e-487e-80c8-7c4bd51482a8.png)

![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/T2klNLEk0wxLh4NRDzhk/cfc5c281-e044-4929-a261-b02a4619117b.png)
2024-04-25 03:30:04 +00:00
..
build-layers.ts fix(electron): optimize bundle size by removing unused dependencies (#6415) 2024-03-30 09:06:10 +00:00
common.ts fix(electron): optimize bundle size by removing unused dependencies (#6415) 2024-03-30 09:06:10 +00:00
dev.ts fix: temporary fix for running electron tests (#6576) 2024-04-16 06:57:17 +00:00
generate-assets.ts fix: temporary fix for running electron tests (#6576) 2024-04-16 06:57:17 +00:00
generate-yml.js fix(electron): electron updater issues (#6005) 2024-03-05 03:27:52 +00:00
macos-arm64-output-check.ts build(electron): asar (#4965) 2023-11-21 17:44:30 +00:00
make-env.ts build(electron): add nsis script for windows installer (#6674) 2024-04-25 03:30:04 +00:00
make-nsis.ts build(electron): add nsis script for windows installer (#6674) 2024-04-25 03:30:04 +00:00
make-squirrel.ts style: apply prefer-node-protocol lint rule (#5627) 2024-01-19 03:47:08 +00:00
nsis-installer.nsh build(electron): add nsis script for windows installer (#6674) 2024-04-25 03:30:04 +00:00
package.json refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00