Skip to content

Commit

Permalink
update: rm portable
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark24Code committed Jun 27, 2024
1 parent 7d42f99 commit 309669f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -166,10 +166,11 @@ end
desc "build program"
task :build => [:"mruby:init", :build_merge, :build_to_c, :"mruby:build_config", :"mruby:custom_build"] do
sh "cc -std=c99 -I#{MRUBY_INCLUDE} #{BUILD_DIR}/*.c -o #{BUILD_DIR}/#{APP_NAME} #{MRUBY_LIB}/libmruby.a -lm"
sh "mkdir -p #{BUILD_DIR}/portable/"
sh "cp #{MRUBY_BIN}/mruby #{BUILD_DIR}/portable/"
sh "mv #{BUILD_DIR}/main.rb #{BUILD_DIR}/portable/"
sh "rm #{BUILD_DIR}/*.h; rm #{BUILD_DIR}/*.c"
## TODO portable need gems
# sh "mkdir -p #{BUILD_DIR}/portable/"
# sh "cp #{MRUBY_BIN}/mruby #{BUILD_DIR}/portable/"
# sh "mv #{BUILD_DIR}/main.rb #{BUILD_DIR}/portable/"
sh "rm #{BUILD_DIR}/*.h; rm #{BUILD_DIR}/*.c; rm #{BUILD_DIR}/*.rb"
sh "tar -czvf app.tar.gz #{BUILD_DIR}"
end

Expand Down

0 comments on commit 309669f

Please sign in to comment.