lossless-cut/developer-notes.md

79 wiersze
1.4 KiB
Markdown

2020-02-23 10:21:31 +00:00
## Development building / running
2021-01-18 21:19:06 +00:00
This app is built using Electron.
2021-10-30 15:43:50 +00:00
Make sure you have at least Node v14. The app uses ffmpeg from PATH when developing.
2021-01-18 21:19:06 +00:00
```bash
npm install -g yarn
2020-02-23 10:21:31 +00:00
```
2021-01-18 21:19:06 +00:00
```bash
2020-02-23 10:21:31 +00:00
git clone https://github.com/mifi/lossless-cut.git
cd lossless-cut
2020-05-06 06:06:06 +00:00
yarn
2020-02-23 10:21:31 +00:00
```
2021-01-18 21:19:06 +00:00
Note: `yarn` may take some time to complete.
2020-02-23 10:21:31 +00:00
2022-04-15 04:58:55 +00:00
### ffmpeg
Run one of the below commands:
2021-07-25 04:48:15 +00:00
```bash
2022-04-15 04:58:55 +00:00
npm run download-ffmpeg-mac
npm run download-ffmpeg-linux
npm run download-ffmpeg-windows
```
2020-05-06 06:06:06 +00:00
2022-04-15 04:58:55 +00:00
### Running
```bash
2020-02-23 10:21:31 +00:00
npm start
```
2021-10-30 15:43:50 +00:00
## Testing mas-dev build locally
This will sign using the development provisioning profile:
```
npm run pack-mas-dev
```
2018-05-22 21:32:54 +00:00
## Release
2021-10-30 15:43:50 +00:00
For per-platform build/signing setup, see https://blog.mifi.no/2020/03/31/automated-electron-build-with-release-to-mac-app-store-microsoft-store-snapcraft/
2018-05-22 21:32:54 +00:00
### Release new version
2022-02-20 16:04:18 +00:00
- Commit changes
- `npm version ...`
- `git push && git push --tags`
- Wait for build and draft in Github actions
- Release draft at github
2021-08-25 09:04:32 +00:00
- Bump [snap version](https://snapcraft.io/losslesscut/listing)
2021-08-28 15:14:15 +00:00
- `npm run scan-i18n` to get the newest Englist strings and push so weblate gets them
2021-11-15 07:32:27 +00:00
2022-01-18 07:09:14 +00:00
## Maintainence chores
2021-11-15 07:32:27 +00:00
2022-01-18 07:09:14 +00:00
### Keep dependencies up to date
- ffmpeg
- electron
- package.json
### i18n
`npm run scan-i18n`
### Licenses
#### Generate summary
2021-11-15 07:32:27 +00:00
```
npx license-checker --summary
```
2022-01-18 07:09:14 +00:00
#### Regenerate licenses file
2021-11-15 07:32:27 +00:00
```
npm run generate-licenses
#cp licenses.txt mifi.no/public/losslesscut/
```
2022-01-18 07:09:14 +00:00
Then deploy.