Decouple update task from install

Now that Gradle runs Helma with the configured dependencies, updating the installation directory has become less crucial
This commit is contained in:
Tobi Schäfer 2024-06-15 13:02:11 +02:00
parent 196794cd93
commit 79b7e8092b
Signed by: tobi
GPG key ID: 91FAE6FE2EBAC4C8
2 changed files with 6 additions and 6 deletions

View file

@ -33,10 +33,12 @@ Helma is built with [Gradle](https://gradle.org), the build task depends on the
### Additional Prerequisites
* [Rsync](https://rsync.samba.org) version ≥ 3.1.0
* [Node.js](https://nodejs.org) LTS version
* [Rsync](https://rsync.samba.org) version ≥ 3.1.0
Clone this repository to your machine and start the build process with `./gradlew install`. The build script is going to ask you if you want to update the installation, enter `yes` or `no`.
Clone this repository to your machine and run Helma with `./gradlew run`.
To update the installation from a build, run `./gradlew update` and enter `yes` at the prompt.
> ⚠️
> Please be aware that this step is going to overwrite files in the installation directory escpecially at a later time when there might be substantial changes. Should this happen by accident you find the previous installation in the `backups` directory.

View file

@ -152,10 +152,6 @@ distZip {
installDist {
dependsOn build
if (!System.getenv('CI')) {
finalizedBy 'update'
}
}
task processSource(type: Sync) {
@ -183,6 +179,8 @@ task processSource(type: Sync) {
}
task update {
dependsOn installDist
def rsyncArgs = ['--archive', '--filter', '- backups']
def confirm = {