Change GitArchiver to use the new requestAsset event
This commit is contained in:
20
orx-jvm/orx-git-archiver/README.md
Normal file
20
orx-jvm/orx-git-archiver/README.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# orx-git-archiver
|
||||
|
||||
An extension that hooks into `Program.requestAssets` to commit
|
||||
changed code to Git and provide filenames based on the commit hash.
|
||||
|
||||
## How do I use it?
|
||||
|
||||
```kotlin
|
||||
application {
|
||||
program {
|
||||
extend(GitArchiver()) {
|
||||
|
||||
|
||||
}
|
||||
extend(Screenshots())
|
||||
}
|
||||
}
|
||||
```
|
||||
Now when a screenshot is taken, first all uncommitted code is committed to git.
|
||||
The screenshot is saved with the first 7 characters of the commit hash in the filename.
|
||||
Reference in New Issue
Block a user