Skip to content

Commit

Permalink
fix: release
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark24Code committed Jun 29, 2024
1 parent 99be06f commit d02377e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ task :"build:wasm" => [:"mruby:init_wasm"] do
end

desc "release package"
task :release do
task :release => [:"build"] do
host_agent.release
end

Expand Down
8 changes: 4 additions & 4 deletions task/agent/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ def initialize(app_name:, debug: false)
@mruby_repo_dir = @proj + "mruby"
@source_dir = @proj + "src"
@source_lib_dir = @proj + "src" + "lib"
@build_dir = @proj + "build"
@build_name = "build"
@build_dir = @proj + @build_name
@cache_dir = @proj + ".cache"
@config_dir = @proj + "config"
@temp_dir = @proj + ".tmp"
Expand All @@ -28,7 +29,7 @@ def initialize(app_name:, debug: false)
@mruby_url = "https://github.com/mruby/mruby/archive/#{@mruby_version}.zip"
@mruby_dir = @mruby_repo_dir + @mruby_version

@mruby_build_dir = @mruby_dir + "build" + @platform
@mruby_build_dir = @mruby_dir + @build_name + @platform
@mruby_bin_dir = @mruby_build_dir + "bin"
@mruby = @mruby_bin_dir + "mruby"
@mrbc = @mruby_bin_dir + "mrbc"
Expand Down Expand Up @@ -181,7 +182,6 @@ def build
end

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

0 comments on commit d02377e

Please sign in to comment.