File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,8 @@ trait InstallModule extends build.MillPublishJavaModule {
2525
2626 def localBinName: String
2727
28+ def cacheBinarySuffix: String = ""
29+
2830 /**
2931 * Build and install Mill locally.
3032 *
@@ -41,7 +43,7 @@ trait InstallModule extends build.MillPublishJavaModule {
4143 def installLocalCache() = Task.Command {
4244 val path = installLocalTask(
4345 Task.Anon(
44- (os.home / ".cache/mill/download" / (build.millVersion() + batExt)).toString()
46+ (os.home / ".cache/mill/download" / (build.millVersion() + cacheBinarySuffix + batExt)).toString()
4547 )
4648 )()
4749 Task.log.outputStream.println(path.toString())
@@ -309,6 +311,8 @@ object `package` extends RootModule with InstallModule {
309311
310312 def localBinName = "mill-native"
311313
314+ def cacheBinarySuffix = "-native"
315+
312316 def executableRaw = Task {
313317 val previous = nativeImage().path
314318 val executable = Task.dest / previous.baseName
You can’t perform that action at this time.
0 commit comments