summaryrefslogtreecommitdiff
path: root/build.sc
diff options
context:
space:
mode:
Diffstat (limited to 'build.sc')
-rwxr-xr-xbuild.sc14
1 files changed, 6 insertions, 8 deletions
diff --git a/build.sc b/build.sc
index db56d39a..b95d46ac 100755
--- a/build.sc
+++ b/build.sc
@@ -522,11 +522,7 @@ object dev extends MillModule{
if (isWin) {
windowsVmOptions("dev.launcher", outputPath, forkArgs())
} else {
- val perms = java.nio.file.Files.getPosixFilePermissions(outputPath.toNIO)
- perms.add(PosixFilePermission.GROUP_EXECUTE)
- perms.add(PosixFilePermission.OWNER_EXECUTE)
- perms.add(PosixFilePermission.OTHERS_EXECUTE)
- java.nio.file.Files.setPosixFilePermissions(outputPath.toNIO, perms)
+ os.perms.set(outputPath, "rwxrwxrwx")
}
PathRef(outputPath)
}
@@ -608,16 +604,18 @@ def assembly = T{
def millBootstrap = T.sources(os.pwd / "mill")
def launcher = T{
- val millBootstrapGrepPrefix = "DEFAULT_MILL_VERSION="
+ val outputPath = T.ctx().dest / "mill"
+ val millBootstrapGrepPrefix = "\nDEFAULT_MILL_VERSION="
os.write(
- T.ctx().dest / "mill",
+ outputPath,
os.read(millBootstrap().head.path)
.replaceAll(
millBootstrapGrepPrefix + "[^\\n]+",
millBootstrapGrepPrefix + publishVersion()._2
)
)
- PathRef(T.ctx().dest / "mill")
+ os.perms.set(outputPath, "rwxrwxrwx")
+ PathRef(outputPath)
}
val isMasterCommit = {