File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ trait DistModule extends Module {
2525
2626 def localBinName: String
2727
28- def cacheBinarySuffix: String = ""
28+ def cacheBinarySuffix: Task[ String] = Task.Anon("")
2929
3030 /**
3131 * Build and install Mill locally.
@@ -43,7 +43,7 @@ trait DistModule extends Module {
4343 def installLocalCache() = Task.Command {
4444 val path = installLocalTask(
4545 Task.Anon(
46- (os.home / ".cache/mill/download" / (build.millVersion() + cacheBinarySuffix + batExt)).toString()
46+ (os.home / ".cache/mill/download" / (build.millVersion() + cacheBinarySuffix() + batExt)).toString()
4747 )
4848 )()
4949 Task.log.streams.out.println(path.toString())
@@ -261,7 +261,7 @@ object `package` extends MillJavaModule with DistModule {
261261
262262 def localBinName = "mill-native"
263263
264- def cacheBinarySuffix = "-native"
264+ def cacheBinarySuffix = Task.Anon { s "-native-${artifactOsSuffix()}-${artifactCpuSuffix()}" }
265265
266266 def executableRaw = nativeImage()
267267
You can’t perform that action at this time.
0 commit comments