support packaging release with krankerl

This commit is contained in:
Jonas Heinrich 2020-11-25 17:58:51 +01:00
parent 601d33a9ed
commit 0f7534e7f8
5 changed files with 88 additions and 7 deletions

22
.nextcloudignore Normal file
View File

@ -0,0 +1,22 @@
/build
/.editorconfig
/.eslintrc.js
/.git
/.gitignore
/.gitlab-ci.yml
/.l10nignore
/node_modules
/.npmignore
/babel.config.js
/composer.json
/krankerl.toml
/Makefile
/package-lock.json
/package.json
/postcss.config.js
/screenshot.png
/src
/stylelint.config.js
/.tx
/utils
/webpack.js

View File

@ -2,6 +2,8 @@
### Fixed ### Fixed
- Add AGPL headers - Add AGPL headers
[#206](https://git.project-insanity.org/onny/nextcloud-app-radio/issues/206) @onny [#206](https://git.project-insanity.org/onny/nextcloud-app-radio/issues/206) @onny
- Support older browser CSS with autoprefix
[#208](https://git.project-insanity.org/onny/nextcloud-app-radio/issues/208) @onny
## 1.0.0 - 2020-11 ## 1.0.0 - 2020-11
### Added ### Added

View File

@ -50,7 +50,7 @@ docker run -v /tmp/dockerdata:/data/data -v /tmp/nextcloud-app-radio:/opt/nextcl
``` ```
## Development notes ## Development notes
### General
While editing the code, you could run following helper script to automatically While editing the code, you could run following helper script to automatically
compile the project: compile the project:
``` ```
@ -58,9 +58,7 @@ echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo s
make watch-js make watch-js
``` ```
Contribute translations via ### Translations
[Transifex](https://www.transifex.com/project-insanityorg/radio-2/dashboard/)!
Manually generate translations. The following commands will require the Manually generate translations. The following commands will require the
dependency packages ``gettext`` and ``php``. dependency packages ``gettext`` and ``php``.
``` ```
@ -70,6 +68,12 @@ php ../docker-ci/translations/translationtool/translationtool.phar create-pot-fi
php ../docker-ci/translations/translationtool/translationtool.phar convert-po-files php ../docker-ci/translations/translationtool/translationtool.phar convert-po-files
``` ```
Contribute translations via
[Transifex](https://www.transifex.com/project-insanityorg/radio-2/dashboard/)!
### Prepare a release
Consoult [Readme.md] on how to prepare a release for Gitlab and the app store.
## Reporting bugs ## Reporting bugs
You can report bugs in the public gitlab repository [here](https://git.project-insanity.org/onny/nextcloud-app-radio/issues) and for discussion you can find a section for the app in the offical Nextcloud forums [here](https://help.nextcloud.com/c/apps/radio). You can report bugs in the public gitlab repository [here](https://git.project-insanity.org/onny/nextcloud-app-radio/issues) and for discussion you can find a section for the app in the offical Nextcloud forums [here](https://help.nextcloud.com/c/apps/radio).

55
Release.md Normal file
View File

@ -0,0 +1,55 @@
Releasing a new version works quite easy with [krankerl](https://github.com/ChristophWurst/krankerl) and [github-release](https://github.com/aktau/github-release) installed:
1. Run krankerl to build the package
```
krankerl package
```
2. Tag the release on GitHub
```
# For a prerelease
github-release release -u nextcloud -r deck -t v0.3.1 -p
# For a regular release
github-release release -u nextcloud -r deck -t v0.3.1
```
3. Upload the release package to GitHub
```
github-release upload -u nextcloud -r deck -t v0.3.1 -n deck.tar.gz -f build/artifacts/deck.tar.gz
```
4. Run krankerl to release the package to the app store (add `--nightly` for prerelease packages)
```
krankerl publish https://github.com/nextcloud/deck/releases/download/v0.3.1/deck.tar.gz
```
## Release PR template
```
## Backports
- [ ] ...
## Translations
- [ ] ...
## Release
- [ ] Set proper Nextcloud versions in info.xml
- [ ] Update changelog
- [ ] Build test release
- [ ] Tested on
- [ ] Nextcloud 13
- [ ] Nextcloud 14
- [ ] Nextcloud 15
- [ ] Merge
- [ ] Build final release
- [ ] Publish release
- [ ] Upload to the app store
```

View File

@ -1,6 +1,4 @@
[package] [package]
before_cmds = [ before_cmds = [
"composer install --no-dev -o", 'make all'
"npm install --deps",
"npm run build",
] ]