mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-04 03:14:40 -05:00
* Remove existing installations with msi installer * Remove unused x86 wxs file * Uninstall old msi versions with different upgrade code * Progress but error 2721 happens on install * Remove added uninstall previous version wxs stuff * Use revision as patch number MSI only uninstalls previous versions in case the version number changed (it only checks the first three numbers (major, minor, patch)). Thus, to prevent each preview install to result in it getting registered as a new "app" and for it to uninstall the old versions, we have to change the version on each release. * Deprecate "BuildConfig.REVISION" * Remove outdated env vars --------- Co-authored-by: Syer10 <syer10@users.noreply.github.com>
40 lines
897 B
Kotlin
40 lines
897 B
Kotlin
package eu.kanade.tachiyomi
|
|
|
|
import suwayomi.tachidesk.manga.impl.util.storage.ImageUtil
|
|
import suwayomi.tachidesk.server.generated.BuildConfig
|
|
|
|
/**
|
|
* Used by extensions.
|
|
*
|
|
* @since extension-lib 1.3
|
|
*/
|
|
object AppInfo {
|
|
/**
|
|
*
|
|
* should be something like 74
|
|
*
|
|
* @since extension-lib 1.3
|
|
*/
|
|
fun getVersionCode() =
|
|
BuildConfig.VERSION
|
|
.replace("v", "")
|
|
.split('.')
|
|
.joinToString("")
|
|
.toInt()
|
|
|
|
/**
|
|
* should be something like "0.13.1"
|
|
*
|
|
* @since extension-lib 1.3
|
|
*/
|
|
fun getVersionName() = BuildConfig.VERSION.substring(1)
|
|
|
|
/**
|
|
* A list of supported image MIME types by the reader.
|
|
* e.g. ["image/jpeg", "image/png", ...]
|
|
*
|
|
* @since extension-lib 1.5
|
|
*/
|
|
fun getSupportedImageMimeTypes(): List<String> = ImageUtil.ImageType.entries.map { it.mime }
|
|
}
|