From 0f7534e7f8ad07fd33ea4e2b7fb31bf7197a9a0b Mon Sep 17 00:00:00 2001 From: Jonas Heinrich Date: Wed, 25 Nov 2020 17:58:51 +0100 Subject: [PATCH] support packaging release with krankerl --- .nextcloudignore | 22 +++++++++++++++++++ CHANGELOG.md | 2 ++ README.md | 12 +++++++---- Release.md | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ krankerl.toml | 4 +--- 5 files changed, 88 insertions(+), 7 deletions(-) create mode 100644 .nextcloudignore create mode 100644 Release.md diff --git a/.nextcloudignore b/.nextcloudignore new file mode 100644 index 0000000..6140525 --- /dev/null +++ b/.nextcloudignore @@ -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 diff --git a/CHANGELOG.md b/CHANGELOG.md index 03ef141..fc133f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ### Fixed - Add AGPL headers [#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 ### Added diff --git a/README.md b/README.md index 756cebb..5a6ce6c 100644 --- a/README.md +++ b/README.md @@ -50,7 +50,7 @@ docker run -v /tmp/dockerdata:/data/data -v /tmp/nextcloud-app-radio:/opt/nextcl ``` ## Development notes - +### General While editing the code, you could run following helper script to automatically 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 ``` -Contribute translations via -[Transifex](https://www.transifex.com/project-insanityorg/radio-2/dashboard/)! - +### Translations Manually generate translations. The following commands will require the 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 ``` +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 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). diff --git a/Release.md b/Release.md new file mode 100644 index 0000000..79c0bb9 --- /dev/null +++ b/Release.md @@ -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 +``` diff --git a/krankerl.toml b/krankerl.toml index 6c87aad..fbe9a49 100644 --- a/krankerl.toml +++ b/krankerl.toml @@ -1,6 +1,4 @@ [package] before_cmds = [ - "composer install --no-dev -o", - "npm install --deps", - "npm run build", + 'make all' ]