diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-08-13 19:03:35 +0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-08-13 19:03:35 +0800 |
commit | b1d516e2b7df2d881c4dc84840e1cdc475b845b5 (patch) | |
tree | dd386eea5ac68ebac3b4a8bfa22201f0f428c119 /build.sc | |
parent | ca17c15784f2aaa7b43fd82fb3e70a219680cbaa (diff) | |
download | cask-b1d516e2b7df2d881c4dc84840e1cdc475b845b5.tar.gz cask-b1d516e2b7df2d881c4dc84840e1cdc475b845b5.tar.bz2 cask-b1d516e2b7df2d881c4dc84840e1cdc475b845b5.zip |
0.0.90.0.9
Diffstat (limited to 'build.sc')
-rw-r--r-- | build.sc | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -58,7 +58,7 @@ object cask extends ScalaModule with PublishModule { } object example extends Module{ trait LocalModule extends ScalaModule{ - def ivyDeps = super.ivyDeps().filter(_ != ivy"com.lihaoyi::cask:0.0.8") + def ivyDeps = super.ivyDeps().filter(_ != ivy"com.lihaoyi::cask:0.0.9") override def millSourcePath = super.millSourcePath / "app" def moduleDeps = Seq(cask) @@ -126,7 +126,7 @@ def uploadToGithub(authKey: String) = T.command{ $file.example.websockets.build.millSourcePath, ) for(example <- examples){ - val f = tmp.dir() + val f = T.ctx().dest val last = example.last + "-" + label cp(example, f/last) write.over( @@ -149,7 +149,8 @@ def uploadToGithub(authKey: String) = T.command{ read(f/last/"build.sc").replace("trait AppModule ", "object app ") ) - %%("zip", "-r", f/"out.zip", f/last)(f) + rm(f/"out.zip") + %%("zip", "-r", f/"out.zip", last)(f) upload.apply(f/"out.zip", releaseTag, last + ".zip", authKey) } } |