Skip to content

Commit f0a0cd7

Browse files
committed
Use a -native suffix when installing a native image into the local cache (com-lihaoyi#4808)
Pull request: com-lihaoyi#4808
1 parent 1129019 commit f0a0cd7

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dist/package.mill

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)