vyvanse/box.rb

34 lines
550 B
Ruby
Raw Normal View History

2017-08-25 08:22:58 +00:00
$repo = "git.xeserv.us/xena/vyvanse"
2017-08-29 16:50:30 +00:00
$gover = "1.9"
2017-08-25 08:22:58 +00:00
from "xena/go-mini:#{$gover}"
run "go#{$gover} download"
def foldercopy(dir)
copy "#{dir}", "/root/go/src/#{$repo}/#{dir}"
end
def gobuild(pkg)
run "go#{$gover} build #{$repo}/#{pkg} && go#{$gover} install #{$repo}/#{pkg}"
end
folders = [
"bot",
"cmd",
2017-08-29 16:50:03 +00:00
"internal",
2017-08-25 08:22:58 +00:00
"vendor",
"vendor-log"
]
folders.each { |x| foldercopy x }
gobuild "cmd/vyvanse"
2017-08-29 16:50:30 +00:00
cmd "/vyvanse"
2017-08-25 08:22:58 +00:00
2017-08-29 16:50:30 +00:00
run "rm -rf $HOME/sdk /root/go/pkg /root/go/bin/vyvanse ||:"
2017-08-25 08:22:58 +00:00
run "apk del go#{$gover}"
flatten
tag "xena/vyvanse"