standalone-ruby 1.4.1 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +33 -16
- data/bin/standalone-ruby +1 -1
- data/lib/data/bat-cmd/default_bat_cmd.txt +9 -9
- data/lib/data/c_compilers/tcc/include/_mingw.h +54 -0
- data/lib/data/c_compilers/tcc/include/assert.h +71 -0
- data/lib/data/c_compilers/tcc/include/conio.h +159 -0
- data/lib/data/c_compilers/tcc/include/ctype.h +232 -0
- data/lib/data/c_compilers/tcc/include/dir.h +26 -0
- data/lib/data/c_compilers/tcc/include/direct.h +95 -0
- data/lib/data/c_compilers/tcc/include/dirent.h +96 -0
- data/lib/data/c_compilers/tcc/include/dos.h +110 -0
- data/lib/data/c_compilers/tcc/include/errno.h +117 -0
- data/lib/data/c_compilers/tcc/include/excpt.h +20 -0
- data/lib/data/c_compilers/tcc/include/fcntl.h +135 -0
- data/lib/data/c_compilers/tcc/include/fenv.h +85 -0
- data/lib/data/c_compilers/tcc/include/float.h +224 -0
- data/lib/data/c_compilers/tcc/include/inttypes.h +275 -0
- data/lib/data/c_compilers/tcc/include/io.h +296 -0
- data/lib/data/c_compilers/tcc/include/limits.h +115 -0
- data/lib/data/c_compilers/tcc/include/locale.h +100 -0
- data/lib/data/c_compilers/tcc/include/malloc.h +87 -0
- data/lib/data/c_compilers/tcc/include/math.h +438 -0
- data/lib/data/c_compilers/tcc/include/mem.h +8 -0
- data/lib/data/c_compilers/tcc/include/memory.h +9 -0
- data/lib/data/c_compilers/tcc/include/process.h +158 -0
- data/lib/data/c_compilers/tcc/include/setjmp.h +72 -0
- data/lib/data/c_compilers/tcc/include/share.h +44 -0
- data/lib/data/c_compilers/tcc/include/signal.h +111 -0
- data/lib/data/c_compilers/tcc/include/stdarg.h +16 -0
- data/lib/data/c_compilers/tcc/include/stdbool.h +10 -0
- data/lib/data/c_compilers/tcc/include/stddef.h +26 -0
- data/lib/data/c_compilers/tcc/include/stdint.h +184 -0
- data/lib/data/c_compilers/tcc/include/stdio.h +413 -0
- data/lib/data/c_compilers/tcc/include/stdlib.h +482 -0
- data/lib/data/c_compilers/tcc/include/string.h +206 -0
- data/lib/data/c_compilers/tcc/include/sys/fcntl.h +8 -0
- data/lib/data/c_compilers/tcc/include/sys/file.h +9 -0
- data/lib/data/c_compilers/tcc/include/sys/locking.h +52 -0
- data/lib/data/c_compilers/tcc/include/sys/stat.h +190 -0
- data/lib/data/c_compilers/tcc/include/sys/time.h +3 -0
- data/lib/data/c_compilers/tcc/include/sys/timeb.h +82 -0
- data/lib/data/c_compilers/tcc/include/sys/types.h +118 -0
- data/lib/data/c_compilers/tcc/include/sys/unistd.h +9 -0
- data/lib/data/c_compilers/tcc/include/sys/utime.h +89 -0
- data/lib/data/c_compilers/tcc/include/tchar.h +367 -0
- data/lib/data/c_compilers/tcc/include/time.h +219 -0
- data/lib/data/c_compilers/tcc/include/unistd.h +10 -0
- data/lib/data/c_compilers/tcc/include/values.h +4 -0
- data/lib/data/c_compilers/tcc/include/varargs.h +11 -0
- data/lib/data/c_compilers/tcc/include/wchar.h +318 -0
- data/lib/data/c_compilers/tcc/include/wctype.h +127 -0
- data/lib/data/c_compilers/tcc/include/winapi/basetsd.h +119 -0
- data/lib/data/c_compilers/tcc/include/winapi/basetyps.h +144 -0
- data/lib/data/c_compilers/tcc/include/winapi/winbase.h +1852 -0
- data/lib/data/c_compilers/tcc/include/winapi/wincon.h +207 -0
- data/lib/data/c_compilers/tcc/include/winapi/windef.h +240 -0
- data/lib/data/c_compilers/tcc/include/winapi/windows.h +176 -0
- data/lib/data/c_compilers/tcc/include/winapi/winerror.h +1054 -0
- data/lib/data/c_compilers/tcc/include/winapi/wingdi.h +2843 -0
- data/lib/data/c_compilers/tcc/include/winapi/winnetwk.h +346 -0
- data/lib/data/c_compilers/tcc/include/winapi/winnls.h +651 -0
- data/lib/data/c_compilers/tcc/include/winapi/winnt.h +2667 -0
- data/lib/data/c_compilers/tcc/include/winapi/winreg.h +159 -0
- data/lib/data/c_compilers/tcc/include/winapi/winsvc.h +309 -0
- data/lib/data/c_compilers/tcc/include/winapi/winuser.h +3472 -0
- data/lib/data/c_compilers/tcc/include/winapi/winver.h +133 -0
- data/lib/data/c_compilers/tcc/lib/gdi32.def +337 -0
- data/lib/data/c_compilers/tcc/lib/kernel32.def +763 -0
- data/lib/data/c_compilers/tcc/lib/libtcc1.a +0 -0
- data/lib/data/c_compilers/tcc/lib/msvcrt.def +782 -0
- data/lib/data/c_compilers/tcc/lib/user32.def +654 -0
- data/lib/data/c_compilers/tcc/tcc.exe +0 -0
- data/lib/data/exe_templates/launcher_stub.c +30 -0
- data/lib/data/exe_templates/launcher_stub.cpp +31 -0
- data/lib/data/launcher_templates/vbs/default_vbs.txt +7 -0
- data/lib/data/launcher_templates/vbs/vbs_gui.txt +8 -0
- data/lib/data/resource_files/default.rc +17 -0
- data/lib/data/tcc/include/_mingw.h +54 -54
- data/lib/data/tcc/include/assert.h +71 -71
- data/lib/data/tcc/include/conio.h +159 -159
- data/lib/data/tcc/include/ctype.h +232 -232
- data/lib/data/tcc/include/dir.h +26 -26
- data/lib/data/tcc/include/direct.h +95 -95
- data/lib/data/tcc/include/dirent.h +96 -96
- data/lib/data/tcc/include/dos.h +110 -110
- data/lib/data/tcc/include/errno.h +117 -117
- data/lib/data/tcc/include/excpt.h +20 -20
- data/lib/data/tcc/include/fcntl.h +135 -135
- data/lib/data/tcc/include/fenv.h +85 -85
- data/lib/data/tcc/include/float.h +224 -224
- data/lib/data/tcc/include/inttypes.h +275 -275
- data/lib/data/tcc/include/io.h +296 -296
- data/lib/data/tcc/include/limits.h +115 -115
- data/lib/data/tcc/include/locale.h +100 -100
- data/lib/data/tcc/include/malloc.h +87 -87
- data/lib/data/tcc/include/math.h +438 -438
- data/lib/data/tcc/include/mem.h +8 -8
- data/lib/data/tcc/include/memory.h +9 -9
- data/lib/data/tcc/include/process.h +158 -158
- data/lib/data/tcc/include/setjmp.h +72 -72
- data/lib/data/tcc/include/share.h +44 -44
- data/lib/data/tcc/include/signal.h +111 -111
- data/lib/data/tcc/include/stdarg.h +16 -16
- data/lib/data/tcc/include/stdbool.h +10 -10
- data/lib/data/tcc/include/stddef.h +26 -26
- data/lib/data/tcc/include/stdint.h +184 -184
- data/lib/data/tcc/include/stdio.h +413 -413
- data/lib/data/tcc/include/stdlib.h +482 -482
- data/lib/data/tcc/include/string.h +206 -206
- data/lib/data/tcc/include/sys/fcntl.h +8 -8
- data/lib/data/tcc/include/sys/file.h +9 -9
- data/lib/data/tcc/include/sys/locking.h +52 -52
- data/lib/data/tcc/include/sys/stat.h +190 -190
- data/lib/data/tcc/include/sys/time.h +3 -3
- data/lib/data/tcc/include/sys/timeb.h +82 -82
- data/lib/data/tcc/include/sys/types.h +118 -118
- data/lib/data/tcc/include/sys/unistd.h +9 -9
- data/lib/data/tcc/include/sys/utime.h +89 -89
- data/lib/data/tcc/include/tchar.h +367 -367
- data/lib/data/tcc/include/time.h +219 -219
- data/lib/data/tcc/include/unistd.h +10 -10
- data/lib/data/tcc/include/values.h +4 -4
- data/lib/data/tcc/include/varargs.h +11 -11
- data/lib/data/tcc/include/wchar.h +318 -318
- data/lib/data/tcc/include/wctype.h +127 -127
- data/lib/data/tcc/include/winapi/basetsd.h +119 -119
- data/lib/data/tcc/include/winapi/basetyps.h +144 -144
- data/lib/data/tcc/include/winapi/winbase.h +1852 -1852
- data/lib/data/tcc/include/winapi/wincon.h +207 -207
- data/lib/data/tcc/include/winapi/windef.h +240 -240
- data/lib/data/tcc/include/winapi/windows.h +176 -176
- data/lib/data/tcc/include/winapi/winerror.h +1054 -1054
- data/lib/data/tcc/include/winapi/wingdi.h +2843 -2843
- data/lib/data/tcc/include/winapi/winnetwk.h +346 -346
- data/lib/data/tcc/include/winapi/winnls.h +651 -651
- data/lib/data/tcc/include/winapi/winnt.h +2667 -2667
- data/lib/data/tcc/include/winapi/winreg.h +159 -159
- data/lib/data/tcc/include/winapi/winsvc.h +309 -309
- data/lib/data/tcc/include/winapi/winuser.h +3472 -3472
- data/lib/data/tcc/include/winapi/winver.h +133 -133
- data/lib/data/tcc/lib/gdi32.def +337 -337
- data/lib/data/tcc/lib/kernel32.def +763 -763
- data/lib/data/tcc/lib/msvcrt.def +782 -782
- data/lib/data/tcc/lib/user32.def +654 -654
- data/lib/data/vbs/default_vbs.txt +7 -7
- data/lib/data/vbs/vbs_gui.txt +8 -8
- data/lib/displayer.rb +66 -0
- data/lib/exe_packer.rb +82 -0
- data/lib/launcher.rb +84 -0
- data/lib/launcher_handler.rb +53 -0
- data/lib/logger_helper.rb +24 -0
- data/lib/parameter_parser.rb +210 -0
- data/lib/ruby_copy.rb +26 -0
- data/lib/sfx_generator.rb +11 -0
- data/lib/standalone_ruby.rb +2 -2
- data/lib/utils/displayer.rb +20 -17
- data/lib/utils/exe_packer.rb +5 -1
- data/lib/utils/launcher.rb +1 -1
- data/lib/utils/launcher_handler.rb +110 -110
- data/lib/utils/parameter_parser.rb +7 -2
- data/lib/utils/ruby_copy.rb +0 -1
- data/lib/version/version.rb +3 -0
- metadata +87 -4
data/lib/utils/launcher.rb
CHANGED
@@ -55,7 +55,7 @@ class Launcher
|
|
55
55
|
@exe_packer.pack
|
56
56
|
@logger.info("Exe pack finished.")
|
57
57
|
|
58
|
-
puts "
|
58
|
+
puts "Thanks for using Standalone-Ruby! Don't forget to star the project on Github."
|
59
59
|
|
60
60
|
print("\nWARNING: ".yellow); puts("Instead of changing the path of the created exe file, create a shortcut. The same applies here as in every application.")
|
61
61
|
@logger.info("Program finished.")
|
@@ -1,111 +1,111 @@
|
|
1
|
-
require 'fileutils'
|
2
|
-
|
3
|
-
require_relative 'logger_helper'
|
4
|
-
|
5
|
-
class LauncherHandler
|
6
|
-
def initialize(params)
|
7
|
-
@params = params
|
8
|
-
@logger = LoggerHelper.instance
|
9
|
-
end
|
10
|
-
|
11
|
-
def handle
|
12
|
-
begin
|
13
|
-
puts("\nThe template creation process has been started.")
|
14
|
-
|
15
|
-
# FileUtils.mkdir(File.join(@params[:project_path], "sRb_files"))
|
16
|
-
|
17
|
-
if @params[:template]
|
18
|
-
if @params[:gui] == true
|
19
|
-
ruby_file = "rubyw.exe"
|
20
|
-
else
|
21
|
-
ruby_file = "ruby.exe"
|
22
|
-
end
|
23
|
-
|
24
|
-
user_template = @params[:template].to_s
|
25
|
-
content = File.read(user_template)
|
26
|
-
@logger.info("The content of the user template has been read.")
|
27
|
-
|
28
|
-
content.gsub!("STANDALONE_RUBY_PATH", "#{File.join(File.basename(@params[:ruby_path].to_s), "bin", "#{ruby_file}")}")
|
29
|
-
@logger.info("Placed the defined Ruby interpreter path in the template.")
|
30
|
-
|
31
|
-
content.gsub!("STANDALONE_MAIN_FILE", "#{File.basename(@params[:main_file].to_s)}")
|
32
|
-
@logger.info("The main project file path defined in the template is placed.")
|
33
|
-
|
34
|
-
new_launcher_path = File.join(@params[:project_path].to_s, @params[:launcher_name].to_s)
|
35
|
-
File.open(new_launcher_path, "w") do |f_man|
|
36
|
-
f_man.puts content
|
37
|
-
end
|
38
|
-
|
39
|
-
@logger.info("New launcher file directory created as #{new_launcher_path.to_s}")
|
40
|
-
else
|
41
|
-
if @params[:launcher_type] == "vbs"
|
42
|
-
if @params[:gui] == true
|
43
|
-
vbs_template = File.join(File.expand_path("../data/vbs", __dir__), "vbs_gui.txt")
|
44
|
-
ruby_file = "rubyw.exe"
|
45
|
-
else
|
46
|
-
vbs_template = File.join(File.expand_path("../data/vbs", __dir__), "default_vbs.txt")
|
47
|
-
ruby_file = "ruby.exe"
|
48
|
-
end
|
49
|
-
|
50
|
-
puts "Using: #{vbs_template}"
|
51
|
-
|
52
|
-
if File.exist?(vbs_template)
|
53
|
-
content = File.read(vbs_template)
|
54
|
-
@logger.info("The content of the template has been read.")
|
55
|
-
|
56
|
-
content.gsub!("STANDALONE_RUBY_PATH", "#{File.join(File.basename(@params[:ruby_path].to_s), "bin", "#{ruby_file}")}")
|
57
|
-
@logger.info("Placed the defined Ruby interpreter path in the template.")
|
58
|
-
|
59
|
-
content.gsub!("STANDALONE_MAIN_FILE", "#{File.basename(@params[:main_file].to_s)}")
|
60
|
-
@logger.info("The main project file path defined in the template is placed.")
|
61
|
-
|
62
|
-
new_launcher_path = File.join(@params[:project_path].to_s, @params[:launcher_name].to_s)
|
63
|
-
File.open(new_launcher_path, "w") do |f_man|
|
64
|
-
f_man.puts content
|
65
|
-
end
|
66
|
-
|
67
|
-
@logger.info("New launcher file directory created as #{new_launcher_path.to_s}")
|
68
|
-
else
|
69
|
-
print("Handler Error: ".red); puts("The template file could not be found.")
|
70
|
-
@logger.error("Template file not found!")
|
71
|
-
exit!
|
72
|
-
end
|
73
|
-
else
|
74
|
-
if @params[:gui] == true
|
75
|
-
ruby_file = "rubyw.exe"
|
76
|
-
else
|
77
|
-
ruby_file = "ruby.exe"
|
78
|
-
end
|
79
|
-
|
80
|
-
bat_template = File.join(File.expand_path("../data/bat-cmd", __dir__), "default_bat_cmd.txt")
|
81
|
-
puts "Using: #{bat_template}"
|
82
|
-
|
83
|
-
if File.exist?(bat_template)
|
84
|
-
content = File.read(bat_template)
|
85
|
-
@logger.info("The content of the template has been read.")
|
86
|
-
|
87
|
-
content.gsub!("STANDALONE_RUBY_PATH", "#{File.join(File.basename(@params[:ruby_path].to_s), "bin", "#{ruby_file}")}")
|
88
|
-
@logger.info("Placed the defined Ruby interpreter path in the template.")
|
89
|
-
|
90
|
-
content.gsub!("STANDALONE_MAIN_FILE", "#{File.basename(@params[:main_file].to_s)}")
|
91
|
-
@logger.info("The main project file path defined in the template is placed.")
|
92
|
-
|
93
|
-
new_launcher_path = File.join(@params[:project_path].to_s, @params[:launcher_name].to_s)
|
94
|
-
File.open(new_launcher_path, "w") do |f_man|
|
95
|
-
f_man.puts content
|
96
|
-
end
|
97
|
-
|
98
|
-
@logger.info("New launcher file directory created as #{new_launcher_path.to_s}")
|
99
|
-
else
|
100
|
-
print("Handler Error: ".red); puts("The template file could not be found.")
|
101
|
-
@logger.error("Handler Error: Template file not found!")
|
102
|
-
exit!
|
103
|
-
end
|
104
|
-
end
|
105
|
-
end
|
106
|
-
rescue Exception => e
|
107
|
-
print("Handler Error: ".red); puts("#{e.message}")
|
108
|
-
@logger.error("Handler Error: #{e.message}")
|
109
|
-
end
|
110
|
-
end
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
require_relative 'logger_helper'
|
4
|
+
|
5
|
+
class LauncherHandler
|
6
|
+
def initialize(params)
|
7
|
+
@params = params
|
8
|
+
@logger = LoggerHelper.instance
|
9
|
+
end
|
10
|
+
|
11
|
+
def handle
|
12
|
+
begin
|
13
|
+
puts("\nThe template creation process has been started.")
|
14
|
+
|
15
|
+
# FileUtils.mkdir(File.join(@params[:project_path], "sRb_files"))
|
16
|
+
|
17
|
+
if @params[:template]
|
18
|
+
if @params[:gui] == true
|
19
|
+
ruby_file = "rubyw.exe"
|
20
|
+
else
|
21
|
+
ruby_file = "ruby.exe"
|
22
|
+
end
|
23
|
+
|
24
|
+
user_template = @params[:template].to_s
|
25
|
+
content = File.read(user_template)
|
26
|
+
@logger.info("The content of the user template has been read.")
|
27
|
+
|
28
|
+
content.gsub!("STANDALONE_RUBY_PATH", "#{File.join(File.basename(@params[:ruby_path].to_s), "bin", "#{ruby_file}")}")
|
29
|
+
@logger.info("Placed the defined Ruby interpreter path in the template.")
|
30
|
+
|
31
|
+
content.gsub!("STANDALONE_MAIN_FILE", "#{File.basename(@params[:main_file].to_s)}")
|
32
|
+
@logger.info("The main project file path defined in the template is placed.")
|
33
|
+
|
34
|
+
new_launcher_path = File.join(@params[:project_path].to_s, @params[:launcher_name].to_s)
|
35
|
+
File.open(new_launcher_path, "w") do |f_man|
|
36
|
+
f_man.puts content
|
37
|
+
end
|
38
|
+
|
39
|
+
@logger.info("New launcher file directory created as #{new_launcher_path.to_s}")
|
40
|
+
else
|
41
|
+
if @params[:launcher_type] == "vbs"
|
42
|
+
if @params[:gui] == true
|
43
|
+
vbs_template = File.join(File.expand_path("../data/vbs", __dir__), "vbs_gui.txt")
|
44
|
+
ruby_file = "rubyw.exe"
|
45
|
+
else
|
46
|
+
vbs_template = File.join(File.expand_path("../data/vbs", __dir__), "default_vbs.txt")
|
47
|
+
ruby_file = "ruby.exe"
|
48
|
+
end
|
49
|
+
|
50
|
+
puts "Using: #{vbs_template}"
|
51
|
+
|
52
|
+
if File.exist?(vbs_template)
|
53
|
+
content = File.read(vbs_template)
|
54
|
+
@logger.info("The content of the template has been read.")
|
55
|
+
|
56
|
+
content.gsub!("STANDALONE_RUBY_PATH", "#{File.join(File.basename(@params[:ruby_path].to_s), "bin", "#{ruby_file}")}")
|
57
|
+
@logger.info("Placed the defined Ruby interpreter path in the template.")
|
58
|
+
|
59
|
+
content.gsub!("STANDALONE_MAIN_FILE", "#{File.basename(@params[:main_file].to_s)}")
|
60
|
+
@logger.info("The main project file path defined in the template is placed.")
|
61
|
+
|
62
|
+
new_launcher_path = File.join(@params[:project_path].to_s, @params[:launcher_name].to_s)
|
63
|
+
File.open(new_launcher_path, "w") do |f_man|
|
64
|
+
f_man.puts content
|
65
|
+
end
|
66
|
+
|
67
|
+
@logger.info("New launcher file directory created as #{new_launcher_path.to_s}")
|
68
|
+
else
|
69
|
+
print("Handler Error: ".red); puts("The template file could not be found.")
|
70
|
+
@logger.error("Template file not found!")
|
71
|
+
exit!
|
72
|
+
end
|
73
|
+
else
|
74
|
+
if @params[:gui] == true
|
75
|
+
ruby_file = "rubyw.exe"
|
76
|
+
else
|
77
|
+
ruby_file = "ruby.exe"
|
78
|
+
end
|
79
|
+
|
80
|
+
bat_template = File.join(File.expand_path("../data/bat-cmd", __dir__), "default_bat_cmd.txt")
|
81
|
+
puts "Using: #{bat_template}"
|
82
|
+
|
83
|
+
if File.exist?(bat_template)
|
84
|
+
content = File.read(bat_template)
|
85
|
+
@logger.info("The content of the template has been read.")
|
86
|
+
|
87
|
+
content.gsub!("STANDALONE_RUBY_PATH", "#{File.join(File.basename(@params[:ruby_path].to_s), "bin", "#{ruby_file}")}")
|
88
|
+
@logger.info("Placed the defined Ruby interpreter path in the template.")
|
89
|
+
|
90
|
+
content.gsub!("STANDALONE_MAIN_FILE", "#{File.basename(@params[:main_file].to_s)}")
|
91
|
+
@logger.info("The main project file path defined in the template is placed.")
|
92
|
+
|
93
|
+
new_launcher_path = File.join(@params[:project_path].to_s, @params[:launcher_name].to_s)
|
94
|
+
File.open(new_launcher_path, "w") do |f_man|
|
95
|
+
f_man.puts content
|
96
|
+
end
|
97
|
+
|
98
|
+
@logger.info("New launcher file directory created as #{new_launcher_path.to_s}")
|
99
|
+
else
|
100
|
+
print("Handler Error: ".red); puts("The template file could not be found.")
|
101
|
+
@logger.error("Handler Error: Template file not found!")
|
102
|
+
exit!
|
103
|
+
end
|
104
|
+
end
|
105
|
+
end
|
106
|
+
rescue Exception => e
|
107
|
+
print("Handler Error: ".red); puts("#{e.message}")
|
108
|
+
@logger.error("Handler Error: #{e.message}")
|
109
|
+
end
|
110
|
+
end
|
111
111
|
end
|
@@ -2,6 +2,7 @@ require 'fileutils'
|
|
2
2
|
require 'optparse'
|
3
3
|
|
4
4
|
require_relative 'logger_helper'
|
5
|
+
require_relative '../version/version'
|
5
6
|
|
6
7
|
class ParameterParser
|
7
8
|
def initialize
|
@@ -20,7 +21,7 @@ class ParameterParser
|
|
20
21
|
|
21
22
|
def display_help
|
22
23
|
help_text = <<~EOT
|
23
|
-
Standalone-Ruby
|
24
|
+
Standalone-Ruby v#{StandaloneRuby::VERSION} - Package your Ruby projects as exe!
|
24
25
|
|
25
26
|
Usage: standalone-ruby [-h] [-p PROJECT_PATH] [-r RUBY_PATH] [-m MAIN_FILE] [-l LAUNCHER] [-t TEMPLATE] [-e EXE_FILE] [-c THREADS] [-g] [-v]
|
26
27
|
|
@@ -52,6 +53,10 @@ class ParameterParser
|
|
52
53
|
-h, --help Show this help message.
|
53
54
|
|
54
55
|
-v, --version Show program version.
|
56
|
+
|
57
|
+
Notes:
|
58
|
+
- Make sure that the Ruby interpreter you are using includes all the gems required for the target project.
|
59
|
+
- The Ruby interpreter uses Robocopy for copying, and the number of threads given affects the speed of this operation.
|
55
60
|
|
56
61
|
For more details, please visit the documentation at:
|
57
62
|
https://github.com/ardatetikbey/Standalone-Ruby
|
@@ -157,7 +162,7 @@ class ParameterParser
|
|
157
162
|
end
|
158
163
|
|
159
164
|
opts.on("-v", "--version") do
|
160
|
-
puts "Standalone Ruby Gem Version
|
165
|
+
puts "Standalone Ruby Gem Version #{StandaloneRuby::VERSION}"
|
161
166
|
exit!
|
162
167
|
end
|
163
168
|
|
data/lib/utils/ruby_copy.rb
CHANGED
@@ -15,7 +15,6 @@ class RubyCopy
|
|
15
15
|
copy_output = `robocopy "#{@params[:ruby_path]}" "#{File.join(@params[:project_path].to_s, File.basename(@params[:ruby_path].to_s))}" /E /MT:#{@params[:threads].to_i} /V /ETA /NFL /NDL /R:1000000 /W:30 /NP`
|
16
16
|
puts "Robocopy Command: robocopy \"#{@params[:ruby_path]}\" \"#{File.join(@params[:project_path], File.basename(@params[:ruby_path]))}\" /E /MT:#{@params[:threads].to_i} /V /ETA /NFL /NDL /R:1000000 /W:30 /NP"
|
17
17
|
|
18
|
-
puts copy_output
|
19
18
|
@logger.info("Robocopy output printed to screen.")
|
20
19
|
|
21
20
|
puts("The Ruby interpreter copying process has been completed.")
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standalone-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arda Tetik
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-04-
|
10
|
+
date: 2025-04-11 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
|
-
description:
|
12
|
+
description: Convert your Ruby projects to exe files!
|
13
13
|
email:
|
14
|
-
-
|
14
|
+
- ardatetik1881@gmail.com
|
15
15
|
executables:
|
16
16
|
- standalone-ruby
|
17
17
|
extensions: []
|
@@ -20,8 +20,82 @@ files:
|
|
20
20
|
- CHANGELOG.md
|
21
21
|
- bin/standalone-ruby
|
22
22
|
- lib/data/bat-cmd/default_bat_cmd.txt
|
23
|
+
- lib/data/c_compilers/tcc/include/_mingw.h
|
24
|
+
- lib/data/c_compilers/tcc/include/assert.h
|
25
|
+
- lib/data/c_compilers/tcc/include/conio.h
|
26
|
+
- lib/data/c_compilers/tcc/include/ctype.h
|
27
|
+
- lib/data/c_compilers/tcc/include/dir.h
|
28
|
+
- lib/data/c_compilers/tcc/include/direct.h
|
29
|
+
- lib/data/c_compilers/tcc/include/dirent.h
|
30
|
+
- lib/data/c_compilers/tcc/include/dos.h
|
31
|
+
- lib/data/c_compilers/tcc/include/errno.h
|
32
|
+
- lib/data/c_compilers/tcc/include/excpt.h
|
33
|
+
- lib/data/c_compilers/tcc/include/fcntl.h
|
34
|
+
- lib/data/c_compilers/tcc/include/fenv.h
|
35
|
+
- lib/data/c_compilers/tcc/include/float.h
|
36
|
+
- lib/data/c_compilers/tcc/include/inttypes.h
|
37
|
+
- lib/data/c_compilers/tcc/include/io.h
|
38
|
+
- lib/data/c_compilers/tcc/include/limits.h
|
39
|
+
- lib/data/c_compilers/tcc/include/locale.h
|
40
|
+
- lib/data/c_compilers/tcc/include/malloc.h
|
41
|
+
- lib/data/c_compilers/tcc/include/math.h
|
42
|
+
- lib/data/c_compilers/tcc/include/mem.h
|
43
|
+
- lib/data/c_compilers/tcc/include/memory.h
|
44
|
+
- lib/data/c_compilers/tcc/include/process.h
|
45
|
+
- lib/data/c_compilers/tcc/include/setjmp.h
|
46
|
+
- lib/data/c_compilers/tcc/include/share.h
|
47
|
+
- lib/data/c_compilers/tcc/include/signal.h
|
48
|
+
- lib/data/c_compilers/tcc/include/stdarg.h
|
49
|
+
- lib/data/c_compilers/tcc/include/stdbool.h
|
50
|
+
- lib/data/c_compilers/tcc/include/stddef.h
|
51
|
+
- lib/data/c_compilers/tcc/include/stdint.h
|
52
|
+
- lib/data/c_compilers/tcc/include/stdio.h
|
53
|
+
- lib/data/c_compilers/tcc/include/stdlib.h
|
54
|
+
- lib/data/c_compilers/tcc/include/string.h
|
55
|
+
- lib/data/c_compilers/tcc/include/sys/fcntl.h
|
56
|
+
- lib/data/c_compilers/tcc/include/sys/file.h
|
57
|
+
- lib/data/c_compilers/tcc/include/sys/locking.h
|
58
|
+
- lib/data/c_compilers/tcc/include/sys/stat.h
|
59
|
+
- lib/data/c_compilers/tcc/include/sys/time.h
|
60
|
+
- lib/data/c_compilers/tcc/include/sys/timeb.h
|
61
|
+
- lib/data/c_compilers/tcc/include/sys/types.h
|
62
|
+
- lib/data/c_compilers/tcc/include/sys/unistd.h
|
63
|
+
- lib/data/c_compilers/tcc/include/sys/utime.h
|
64
|
+
- lib/data/c_compilers/tcc/include/tchar.h
|
65
|
+
- lib/data/c_compilers/tcc/include/time.h
|
66
|
+
- lib/data/c_compilers/tcc/include/unistd.h
|
67
|
+
- lib/data/c_compilers/tcc/include/values.h
|
68
|
+
- lib/data/c_compilers/tcc/include/varargs.h
|
69
|
+
- lib/data/c_compilers/tcc/include/wchar.h
|
70
|
+
- lib/data/c_compilers/tcc/include/wctype.h
|
71
|
+
- lib/data/c_compilers/tcc/include/winapi/basetsd.h
|
72
|
+
- lib/data/c_compilers/tcc/include/winapi/basetyps.h
|
73
|
+
- lib/data/c_compilers/tcc/include/winapi/winbase.h
|
74
|
+
- lib/data/c_compilers/tcc/include/winapi/wincon.h
|
75
|
+
- lib/data/c_compilers/tcc/include/winapi/windef.h
|
76
|
+
- lib/data/c_compilers/tcc/include/winapi/windows.h
|
77
|
+
- lib/data/c_compilers/tcc/include/winapi/winerror.h
|
78
|
+
- lib/data/c_compilers/tcc/include/winapi/wingdi.h
|
79
|
+
- lib/data/c_compilers/tcc/include/winapi/winnetwk.h
|
80
|
+
- lib/data/c_compilers/tcc/include/winapi/winnls.h
|
81
|
+
- lib/data/c_compilers/tcc/include/winapi/winnt.h
|
82
|
+
- lib/data/c_compilers/tcc/include/winapi/winreg.h
|
83
|
+
- lib/data/c_compilers/tcc/include/winapi/winsvc.h
|
84
|
+
- lib/data/c_compilers/tcc/include/winapi/winuser.h
|
85
|
+
- lib/data/c_compilers/tcc/include/winapi/winver.h
|
86
|
+
- lib/data/c_compilers/tcc/lib/gdi32.def
|
87
|
+
- lib/data/c_compilers/tcc/lib/kernel32.def
|
88
|
+
- lib/data/c_compilers/tcc/lib/libtcc1.a
|
89
|
+
- lib/data/c_compilers/tcc/lib/msvcrt.def
|
90
|
+
- lib/data/c_compilers/tcc/lib/user32.def
|
91
|
+
- lib/data/c_compilers/tcc/tcc.exe
|
23
92
|
- lib/data/exe_template/launcher_stub.c
|
24
93
|
- lib/data/exe_template/launcher_stub.cpp
|
94
|
+
- lib/data/exe_templates/launcher_stub.c
|
95
|
+
- lib/data/exe_templates/launcher_stub.cpp
|
96
|
+
- lib/data/launcher_templates/vbs/default_vbs.txt
|
97
|
+
- lib/data/launcher_templates/vbs/vbs_gui.txt
|
98
|
+
- lib/data/resource_files/default.rc
|
25
99
|
- lib/data/tcc/include/_mingw.h
|
26
100
|
- lib/data/tcc/include/assert.h
|
27
101
|
- lib/data/tcc/include/conio.h
|
@@ -95,6 +169,14 @@ files:
|
|
95
169
|
- lib/data/tcc/tiny_libmaker.exe
|
96
170
|
- lib/data/vbs/default_vbs.txt
|
97
171
|
- lib/data/vbs/vbs_gui.txt
|
172
|
+
- lib/displayer.rb
|
173
|
+
- lib/exe_packer.rb
|
174
|
+
- lib/launcher.rb
|
175
|
+
- lib/launcher_handler.rb
|
176
|
+
- lib/logger_helper.rb
|
177
|
+
- lib/parameter_parser.rb
|
178
|
+
- lib/ruby_copy.rb
|
179
|
+
- lib/sfx_generator.rb
|
98
180
|
- lib/standalone_ruby.rb
|
99
181
|
- lib/utils/config_generator.rb
|
100
182
|
- lib/utils/displayer.rb
|
@@ -104,6 +186,7 @@ files:
|
|
104
186
|
- lib/utils/logger_helper.rb
|
105
187
|
- lib/utils/parameter_parser.rb
|
106
188
|
- lib/utils/ruby_copy.rb
|
189
|
+
- lib/version/version.rb
|
107
190
|
homepage: https://github.com/ardatetikbey/Standalone-Ruby
|
108
191
|
licenses:
|
109
192
|
- MIT
|