[Wasm] Use jsshell version in zip and directory names
Otherwise, it wouldn't rerun the task when downloading new version
This commit is contained in:
committed by
Space Team
parent
60b8d2b3d9
commit
1603cd11ea
@@ -90,7 +90,8 @@ val currentOsType = run {
|
||||
OsType(osName, osArch)
|
||||
}
|
||||
|
||||
val jsShellDirectory = "https://archive.mozilla.org/pub/firefox/nightly/2023/03/2023-03-04-09-52-24-mozilla-central"
|
||||
val jsShellVersion = "2023-03-04-09-52-24-mozilla-central"
|
||||
val jsShellDirectory = "https://archive.mozilla.org/pub/firefox/nightly/2023/03/$jsShellVersion"
|
||||
val jsShellSuffix = when (currentOsType) {
|
||||
OsType(OsName.LINUX, OsArch.X86_32) -> "linux-i686"
|
||||
OsType(OsName.LINUX, OsArch.X86_64) -> "linux-x86_64"
|
||||
@@ -106,14 +107,14 @@ val downloadedTools = File(buildDir, "tools")
|
||||
|
||||
val downloadJsShell by task<Download> {
|
||||
src(jsShellLocation)
|
||||
dest(File(downloadedTools, "jsshell-$jsShellSuffix.zip"))
|
||||
dest(File(downloadedTools, "jsshell-$jsShellSuffix-$jsShellVersion.zip"))
|
||||
overwrite(false)
|
||||
}
|
||||
|
||||
val unzipJsShell by task<Copy> {
|
||||
dependsOn(downloadJsShell)
|
||||
from(zipTree(downloadJsShell.get().dest))
|
||||
val unpackedDir = File(downloadedTools, "jsshell-$jsShellSuffix")
|
||||
val unpackedDir = File(downloadedTools, "jsshell-$jsShellSuffix-$jsShellVersion")
|
||||
into(unpackedDir)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user