Skip to content
This repository has been archived by the owner on Dec 12, 2020. It is now read-only.

Commit

Permalink
fix: add changelog & fix feedback report zip structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Xerus committed Jul 3, 2019
1 parent b4ccd32 commit 3e20c37
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions src/main/xerus/monstercat/MonsterUtilities.kt
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,12 @@ class MonsterUtilities(checkForUpdate: Boolean): VBox(), JFXMessageDisplay {

fun showChangelog() {
val c = Changelog().apply {
version("dev123", "Revamp Release fetching",
version("dev138", "Revamp Release fetching",
"The Release fetching now works with the new pagination of the Monstercat API",
"Added a little cover art in the Player")
"Added a little cover art in the Player",
"Fixed naming patterns in Downloader",
"Improved caching",
"Squashed many small bugs")

version("dev116", "Bugfixes & Downloader aftercare",
"Updated & Expanded connect.sid instructions",
Expand Down
6 changes: 3 additions & 3 deletions src/main/xerus/monstercat/tabs/TabSettings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ class TabSettings: VTab() {
val files = cacheDir.listFiles() + logDir.listFiles()
ZipOutputStream(zipFile.outputStream()).use { zip ->
files.filter { it.isFile && it != zipFile }.forEach { file ->
zip.putNextEntry(ZipEntry(file.toString().removePrefix(cacheDir.toString()).replace('\\', '/').trim('/')).apply {
this.lastModifiedTime = FileTime.from(file.lastModified(), TimeUnit.MILLISECONDS)
})
val entry = ZipEntry(file.toString().removePrefix(dataDir.toString()).replace('\\', '/').trim('/'))
entry.lastModifiedTime = FileTime.from(file.lastModified(), TimeUnit.MILLISECONDS)
zip.putNextEntry(entry)
file.inputStream().use { it.copyTo(zip) }
}
}
Expand Down

0 comments on commit 3e20c37

Please sign in to comment.