mirror of
https://github.com/curioustorvald/tsvm.git
synced 2026-03-09 12:41:51 +09:00
8 lines
326 B
JavaScript
8 lines
326 B
JavaScript
if (exec_args[1] === undefined) {
|
|
println("Usage: decompile myfile.bin")
|
|
println("The compiled file will be myfile.bin.js")
|
|
return 1
|
|
}
|
|
_G.shell.execute(`enc ${exec_args[1]} ${exec_args[1]}.gz`)
|
|
_G.shell.execute(`gzip -c -d ${exec_args[1]}.gz | writeto ${exec_args[1]}.js`)
|
|
_G.shell.execute(`rm ${exec_args[1]}.gz`) |