Skip to content

Commit

Permalink
feat: add release cmd
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark24Code committed Jun 29, 2024
1 parent ffeaecf commit 315e82d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,10 @@ task :"build:wasm" => [:"mruby:init_wasm"] do
wasm_agent.build
end

desc "release package"
task :release do
host_agent.release
end

task :default do
system("rake -T")
Expand Down
5 changes: 5 additions & 0 deletions task/agent/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -179,4 +179,9 @@ def build
build_code
build_clean
end

def release
build
shell "tar -czvf app.tar.gz #{@build_dir}"
end
end

0 comments on commit 315e82d

Please sign in to comment.