standalone-ruby 1.5.0 → 1.5.1
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 +4 -0
- data/lib/displayer.rb +2 -4
- data/lib/exe_packer.rb +1 -15
- data/lib/launcher.rb +4 -17
- data/lib/launcher_handler.rb +0 -12
- data/lib/parameter_parser.rb +0 -9
- data/lib/ruby_copy.rb +0 -6
- data/lib/sfx_generator.rb +0 -2
- data/lib/version/version.rb +1 -1
- metadata +2 -87
- data/lib/data/bat-cmd/default_bat_cmd.txt +0 -9
- data/lib/data/exe_template/launcher_stub.c +0 -30
- data/lib/data/exe_template/launcher_stub.cpp +0 -9
- data/lib/data/tcc/include/_mingw.h +0 -54
- data/lib/data/tcc/include/assert.h +0 -71
- data/lib/data/tcc/include/conio.h +0 -159
- data/lib/data/tcc/include/ctype.h +0 -232
- data/lib/data/tcc/include/dir.h +0 -26
- data/lib/data/tcc/include/direct.h +0 -95
- data/lib/data/tcc/include/dirent.h +0 -96
- data/lib/data/tcc/include/dos.h +0 -110
- data/lib/data/tcc/include/errno.h +0 -117
- data/lib/data/tcc/include/excpt.h +0 -20
- data/lib/data/tcc/include/fcntl.h +0 -135
- data/lib/data/tcc/include/fenv.h +0 -85
- data/lib/data/tcc/include/float.h +0 -224
- data/lib/data/tcc/include/inttypes.h +0 -275
- data/lib/data/tcc/include/io.h +0 -296
- data/lib/data/tcc/include/limits.h +0 -115
- data/lib/data/tcc/include/locale.h +0 -100
- data/lib/data/tcc/include/malloc.h +0 -87
- data/lib/data/tcc/include/math.h +0 -438
- data/lib/data/tcc/include/mem.h +0 -8
- data/lib/data/tcc/include/memory.h +0 -9
- data/lib/data/tcc/include/process.h +0 -158
- data/lib/data/tcc/include/setjmp.h +0 -72
- data/lib/data/tcc/include/share.h +0 -44
- data/lib/data/tcc/include/signal.h +0 -111
- data/lib/data/tcc/include/stdarg.h +0 -16
- data/lib/data/tcc/include/stdbool.h +0 -10
- data/lib/data/tcc/include/stddef.h +0 -26
- data/lib/data/tcc/include/stdint.h +0 -184
- data/lib/data/tcc/include/stdio.h +0 -413
- data/lib/data/tcc/include/stdlib.h +0 -482
- data/lib/data/tcc/include/string.h +0 -206
- data/lib/data/tcc/include/sys/fcntl.h +0 -8
- data/lib/data/tcc/include/sys/file.h +0 -9
- data/lib/data/tcc/include/sys/locking.h +0 -52
- data/lib/data/tcc/include/sys/stat.h +0 -190
- data/lib/data/tcc/include/sys/time.h +0 -3
- data/lib/data/tcc/include/sys/timeb.h +0 -82
- data/lib/data/tcc/include/sys/types.h +0 -118
- data/lib/data/tcc/include/sys/unistd.h +0 -9
- data/lib/data/tcc/include/sys/utime.h +0 -89
- data/lib/data/tcc/include/tchar.h +0 -367
- data/lib/data/tcc/include/time.h +0 -219
- data/lib/data/tcc/include/unistd.h +0 -10
- data/lib/data/tcc/include/values.h +0 -4
- data/lib/data/tcc/include/varargs.h +0 -11
- data/lib/data/tcc/include/wchar.h +0 -318
- data/lib/data/tcc/include/wctype.h +0 -127
- data/lib/data/tcc/include/winapi/basetsd.h +0 -119
- data/lib/data/tcc/include/winapi/basetyps.h +0 -144
- data/lib/data/tcc/include/winapi/winbase.h +0 -1852
- data/lib/data/tcc/include/winapi/wincon.h +0 -207
- data/lib/data/tcc/include/winapi/windef.h +0 -240
- data/lib/data/tcc/include/winapi/windows.h +0 -176
- data/lib/data/tcc/include/winapi/winerror.h +0 -1054
- data/lib/data/tcc/include/winapi/wingdi.h +0 -2843
- data/lib/data/tcc/include/winapi/winnetwk.h +0 -346
- data/lib/data/tcc/include/winapi/winnls.h +0 -651
- data/lib/data/tcc/include/winapi/winnt.h +0 -2667
- data/lib/data/tcc/include/winapi/winreg.h +0 -159
- data/lib/data/tcc/include/winapi/winsvc.h +0 -309
- data/lib/data/tcc/include/winapi/winuser.h +0 -3472
- data/lib/data/tcc/include/winapi/winver.h +0 -133
- data/lib/data/tcc/lib/gdi32.def +0 -337
- data/lib/data/tcc/lib/kernel32.def +0 -763
- data/lib/data/tcc/lib/libtcc1.a +0 -0
- data/lib/data/tcc/lib/msvcrt.def +0 -782
- data/lib/data/tcc/lib/user32.def +0 -654
- data/lib/data/tcc/tcc.exe +0 -0
- data/lib/data/tcc/tiny_impdef.exe +0 -0
- data/lib/data/tcc/tiny_libmaker.exe +0 -0
- data/lib/data/vbs/default_vbs.txt +0 -7
- data/lib/data/vbs/vbs_gui.txt +0 -8
- data/lib/logger_helper.rb +0 -24
- data/lib/utils/config_generator.rb +0 -5
- data/lib/utils/displayer.rb +0 -64
- data/lib/utils/exe_packer.rb +0 -72
- data/lib/utils/launcher.rb +0 -77
- data/lib/utils/launcher_handler.rb +0 -111
- data/lib/utils/logger_helper.rb +0 -24
- data/lib/utils/parameter_parser.rb +0 -211
- data/lib/utils/ruby_copy.rb +0 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c724970cd908e926f103830ca76508f7da51862fe862ae9d12aa8dec27a6f504
|
4
|
+
data.tar.gz: 2931a5adefac88cdf0d432bbfcf4d61af96c38060e0a065e227aeea6e967cc4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe7a0dbb6b0a7452769ae5529c4de5d7df1a4fdfecc7272d2f2c049875a607d2823b1b6130e6b5afcc2582f83581f63e412c6a66b6bb24f42ea95b316ff9824e
|
7
|
+
data.tar.gz: 2a1dcf854840db1dd0ed5d5b99df82691d9d1386d420d56c3e1a410ac86c6cf8110509d902b2d3e31ba1468088b03eafc8ab8492633c9a82028f69f09ac447fa
|
data/CHANGELOG.md
CHANGED
data/lib/displayer.rb
CHANGED
@@ -1,17 +1,16 @@
|
|
1
|
-
require_relative 'logger_helper'
|
2
1
|
require_relative 'version/version'
|
3
2
|
|
4
3
|
class Displayer
|
5
4
|
def initialize(params)
|
6
5
|
@params = params
|
7
|
-
@logger = LoggerHelper.instance
|
8
6
|
end
|
9
7
|
|
10
8
|
def display_params
|
11
9
|
begin
|
12
|
-
puts("
|
10
|
+
puts("Parameters:")
|
13
11
|
|
14
12
|
display_map = {
|
13
|
+
"Platform" => $platform,
|
15
14
|
"Project Path" => @params[:project_path],
|
16
15
|
"Resource File" => @params[:resource_file],
|
17
16
|
"Exe File" => @params[:exe],
|
@@ -30,7 +29,6 @@ class Displayer
|
|
30
29
|
|
31
30
|
rescue => e
|
32
31
|
print("Display Error: ".red); puts(e.message.red)
|
33
|
-
@logger.error("Display Error: #{e.message}")
|
34
32
|
end
|
35
33
|
end
|
36
34
|
|
data/lib/exe_packer.rb
CHANGED
@@ -1,16 +1,11 @@
|
|
1
|
-
require_relative 'logger_helper'
|
2
|
-
|
3
1
|
class ExePacker
|
4
2
|
def initialize(params)
|
5
3
|
@params = params
|
6
|
-
@logger = LoggerHelper.instance
|
7
4
|
end
|
8
5
|
|
9
6
|
def pack
|
10
7
|
begin
|
11
8
|
stub_path = File.join(File.expand_path("data/exe_templates", __dir__), "launcher_stub.c")
|
12
|
-
@logger.info("Reading stub template from: #{stub_path}")
|
13
|
-
|
14
9
|
stub_content = File.read(stub_path)
|
15
10
|
|
16
11
|
stub_output = "#{File.join(@params[:project_path].to_s, "launcher_stub.c")}"
|
@@ -31,15 +26,12 @@ class ExePacker
|
|
31
26
|
puts "Windres Path: #{windres_path}"
|
32
27
|
|
33
28
|
windres_command = "#{windres_path} #{@params[:resource_file].to_s} -O coff -o #{File.join(@params[:project_path].to_s, "program.o")}"
|
34
|
-
@logger.info("Running command: #{windres_command}")
|
35
29
|
`#{windres_command}`
|
36
30
|
|
37
31
|
gcc_command = "#{gcc_path} -o #{exe_path} #{File.join(@params[:project_path].to_s, "program.o")} #{stub_output}"
|
38
|
-
@logger.info("Running command: #{gcc_command}")
|
39
32
|
`#{gcc_command}`
|
40
33
|
|
41
34
|
File.delete("#{File.join(@params[:project_path].to_s, 'program.o')}")
|
42
|
-
@logger.info("program.o file deleted")
|
43
35
|
else
|
44
36
|
print("Error: ".red); puts("GCC could not be found!")
|
45
37
|
exit!
|
@@ -48,20 +40,14 @@ class ExePacker
|
|
48
40
|
puts "\nUsing Tiny C Compiler (TCC)..."
|
49
41
|
|
50
42
|
tcc_path = File.join(File.expand_path("data/c_compilers/tcc", __dir__), "tcc.exe")
|
51
|
-
@logger.info("TCC Path: #{tcc_path}")
|
52
|
-
|
53
43
|
command = "#{tcc_path} -o #{exe_path} #{stub_output} -lkernel32"
|
54
|
-
@logger.info("Running command: #{command}")
|
55
44
|
`#{command}`
|
56
45
|
end
|
57
46
|
|
58
47
|
File.delete(stub_output)
|
59
|
-
@logger.info("Stub file deleted successfully")
|
60
48
|
|
61
|
-
puts("\nExe file has been generated!"
|
62
|
-
@logger.info("Exe file generated at: #{exe_path}")
|
49
|
+
puts("\nExe file has been generated!")
|
63
50
|
rescue Exception => err
|
64
|
-
@logger.error("Error occurred: #{err.message}")
|
65
51
|
print("Error: ".red); puts(err.message)
|
66
52
|
end
|
67
53
|
end
|
data/lib/launcher.rb
CHANGED
@@ -3,20 +3,19 @@ require 'optparse'
|
|
3
3
|
require_relative 'displayer'
|
4
4
|
require_relative 'parameter_parser'
|
5
5
|
require_relative 'ruby_copy'
|
6
|
-
require_relative 'logger_helper'
|
7
6
|
require_relative 'exe_packer'
|
8
7
|
require_relative 'launcher_handler'
|
9
8
|
|
10
|
-
|
11
9
|
class Launcher
|
12
10
|
def initialize
|
11
|
+
platform_analysis
|
12
|
+
|
13
13
|
@parser = ParameterParser.new
|
14
14
|
@parser.parse
|
15
15
|
@params = @parser.params
|
16
16
|
|
17
17
|
@displayer = Displayer.new(@params)
|
18
18
|
@ruby_copy = RubyCopy.new(@params)
|
19
|
-
@logger = LoggerHelper.instance
|
20
19
|
@exe_packer = ExePacker.new(@params)
|
21
20
|
@launcher_handler = LauncherHandler.new(@params)
|
22
21
|
end
|
@@ -24,36 +23,26 @@ class Launcher
|
|
24
23
|
def platform_analysis
|
25
24
|
case RUBY_PLATFORM
|
26
25
|
when /win32|mingw|cygwin/
|
27
|
-
|
28
|
-
@logger.info("Working on windows platform.")
|
26
|
+
$platform = 'win32'
|
29
27
|
else
|
30
28
|
print("Error: ".red); puts("This platform is not supported! Exiting...")
|
31
|
-
@logger.error("This platform is not supported! Exiting...")
|
32
29
|
exit!
|
33
30
|
end
|
34
31
|
end
|
35
32
|
|
33
|
+
|
36
34
|
def run
|
37
35
|
begin
|
38
36
|
Signal.trap("INT") do
|
39
|
-
@logger.info("The program was closed because an interrupt command was detected.")
|
40
37
|
puts "\nProgram interrupted. Shutting down..."
|
41
38
|
exit(0)
|
42
39
|
end
|
43
40
|
|
44
|
-
platform_analysis
|
45
|
-
|
46
|
-
@logger.info("the executor function is started.")
|
47
41
|
@displayer.banner
|
48
|
-
@logger.info("Banner display was made.")
|
49
42
|
@displayer.display_params
|
50
|
-
@logger.info("The parameters entered by the user are reflected on the screen.")
|
51
43
|
@ruby_copy.robocopy_interpreter
|
52
|
-
@logger.info("Ruby interpreter copy function completed.")
|
53
44
|
@launcher_handler.handle
|
54
|
-
@logger.info("Launcher handler finished.")
|
55
45
|
@exe_packer.pack
|
56
|
-
@logger.info("Exe pack finished.")
|
57
46
|
|
58
47
|
if @params[:one_file_exe]
|
59
48
|
require_relative 'sfx_generator'
|
@@ -65,9 +54,7 @@ class Launcher
|
|
65
54
|
|
66
55
|
puts("\nThis project is under development. If you encounter any errors, you can open an issue on Github.\nIf you want to make a suggestion, you can contact me.")
|
67
56
|
puts "Thanks for using Standalone-Ruby! Don't forget to star the project on Github."
|
68
|
-
@logger.info("Program finished.")
|
69
57
|
rescue Exception => e
|
70
|
-
@logger.error("Launcher Error: #{e.message}")
|
71
58
|
print("Launcher Error: "); puts("#{e.message}".red)
|
72
59
|
end
|
73
60
|
end
|
data/lib/launcher_handler.rb
CHANGED
@@ -1,11 +1,8 @@
|
|
1
1
|
require 'fileutils'
|
2
2
|
|
3
|
-
require_relative 'logger_helper'
|
4
|
-
|
5
3
|
class LauncherHandler
|
6
4
|
def initialize(params)
|
7
5
|
@params = params
|
8
|
-
@logger = LoggerHelper.instance
|
9
6
|
end
|
10
7
|
|
11
8
|
def handle
|
@@ -16,38 +13,29 @@ class LauncherHandler
|
|
16
13
|
|
17
14
|
if @params[:gui] == true
|
18
15
|
vbs_template = File.join(File.expand_path("data/launcher_templates/vbs", __dir__), "vbs_gui.txt")
|
19
|
-
ruby_file = "rubyw.exe"
|
20
16
|
else
|
21
17
|
vbs_template = File.join(File.expand_path("data/launcher_templates/vbs", __dir__), "default_vbs.txt")
|
22
|
-
ruby_file = "ruby.exe"
|
23
18
|
end
|
24
19
|
|
25
20
|
puts "Using: #{vbs_template}"
|
26
21
|
|
27
22
|
if File.exist?(vbs_template)
|
28
23
|
content = File.read(vbs_template)
|
29
|
-
@logger.info("The content of the template has been read.")
|
30
24
|
|
31
25
|
content.gsub!("STANDALONE_RUBY_PATH", "#{File.join(File.basename(@params[:ruby_path].to_s), "bin", "#{ruby_file}")}")
|
32
|
-
@logger.info("Placed the defined Ruby interpreter path in the template.")
|
33
|
-
|
34
26
|
content.gsub!("STANDALONE_MAIN_FILE", "#{File.basename(@params[:main_file].to_s)}")
|
35
|
-
@logger.info("The main project file path defined in the template is placed.")
|
36
27
|
|
37
28
|
new_launcher_path = File.join(@params[:project_path].to_s, @params[:launcher_name].to_s)
|
38
29
|
File.open(new_launcher_path, "w") do |f_man|
|
39
30
|
f_man.puts content
|
40
31
|
end
|
41
32
|
|
42
|
-
@logger.info("New launcher file directory created as #{new_launcher_path.to_s}")
|
43
33
|
else
|
44
34
|
print("Handler Error: ".red); puts("The template file could not be found.")
|
45
|
-
@logger.error("Template file not found!")
|
46
35
|
exit!
|
47
36
|
end
|
48
37
|
rescue Exception => e
|
49
38
|
print("Handler Error: ".red); puts("#{e.message}")
|
50
|
-
@logger.error("Handler Error: #{e.message}")
|
51
39
|
end
|
52
40
|
end
|
53
41
|
end
|
data/lib/parameter_parser.rb
CHANGED
@@ -2,7 +2,6 @@ require 'fileutils'
|
|
2
2
|
require 'tmpdir'
|
3
3
|
require 'optparse'
|
4
4
|
|
5
|
-
require_relative 'logger_helper'
|
6
5
|
require_relative 'version/version'
|
7
6
|
|
8
7
|
class ParameterParser
|
@@ -17,7 +16,6 @@ class ParameterParser
|
|
17
16
|
launcher_type: "vbs"
|
18
17
|
}
|
19
18
|
|
20
|
-
@logger = LoggerHelper.instance
|
21
19
|
end
|
22
20
|
|
23
21
|
def normalize_paths!
|
@@ -94,7 +92,6 @@ class ParameterParser
|
|
94
92
|
@params[:resource_file] = resource_file
|
95
93
|
else
|
96
94
|
print("Parser Error: ".red); puts("The specified resource file #{resource_file} could not be found!")
|
97
|
-
@logger.error("Parser Error: The specified resource file #{resource_file} could not be found!")
|
98
95
|
exit!
|
99
96
|
end
|
100
97
|
end
|
@@ -111,7 +108,6 @@ class ParameterParser
|
|
111
108
|
end
|
112
109
|
else
|
113
110
|
print("Parser Error: ".red); puts("The specified Ruby path #{ruby_path} could not be found!")
|
114
|
-
@logger.error("Parser Error: The specified Ruby path #{ruby_path} could not be found!")
|
115
111
|
exit!
|
116
112
|
end
|
117
113
|
end
|
@@ -122,7 +118,6 @@ class ParameterParser
|
|
122
118
|
@params[:project_path] = project_path
|
123
119
|
else
|
124
120
|
print("Parser Error: ".red); puts("The specified project path #{project_path} could not be found!")
|
125
|
-
@logger.error("Parser Error: The project path #{project_path} could not be found!")
|
126
121
|
exit!
|
127
122
|
end
|
128
123
|
end
|
@@ -141,7 +136,6 @@ class ParameterParser
|
|
141
136
|
@params[:main_file] = main_file
|
142
137
|
else
|
143
138
|
print("Parser Error: ".red); puts("The specified file #{main_file} could not be found!")
|
144
|
-
@logger.error("Parser Error: The specified file #{main_file} could not be found!")
|
145
139
|
exit!
|
146
140
|
end
|
147
141
|
end
|
@@ -151,7 +145,6 @@ class ParameterParser
|
|
151
145
|
@params[:threads] = threads
|
152
146
|
else
|
153
147
|
print("Parser Error: ".red); puts("Invalid value for threads. Please provide an integer.")
|
154
|
-
@logger.error("Parser Error: Invalid value for threads.")
|
155
148
|
exit!
|
156
149
|
end
|
157
150
|
end
|
@@ -175,13 +168,11 @@ class ParameterParser
|
|
175
168
|
|
176
169
|
if @params[:project_path].nil? || @params[:ruby_path].nil? || @params[:main_file].nil?
|
177
170
|
print("Error: ".red); puts("Missing required parameters. Please provide the necessary parameters:\n -p, -r, -m.\nYou can use the -h parameter for the help menu.")
|
178
|
-
@logger.error("Parser Error: Missing required parameters.")
|
179
171
|
exit!
|
180
172
|
end
|
181
173
|
|
182
174
|
rescue Exception => e
|
183
175
|
print("Parser Error: ".red); puts("#{e.message}".red)
|
184
|
-
@logger.error("Parser Error: #{e.message}")
|
185
176
|
exit!
|
186
177
|
end
|
187
178
|
end
|
data/lib/ruby_copy.rb
CHANGED
@@ -1,9 +1,6 @@
|
|
1
|
-
require_relative 'logger_helper'
|
2
|
-
|
3
1
|
class RubyCopy
|
4
2
|
def initialize(params)
|
5
3
|
@params = params
|
6
|
-
@logger = LoggerHelper.instance
|
7
4
|
end
|
8
5
|
|
9
6
|
def robocopy_interpreter
|
@@ -11,16 +8,13 @@ class RubyCopy
|
|
11
8
|
puts("\nThe Ruby interpreter copying process has been started.")
|
12
9
|
print("WARNING: ".yellow); puts("If you are using a development kit, the copying process may take a long time.")
|
13
10
|
|
14
|
-
@logger.info("Robocopy process started using backticks.")
|
15
11
|
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
12
|
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
13
|
|
18
|
-
@logger.info("Robocopy output printed to screen.")
|
19
14
|
|
20
15
|
puts("The Ruby interpreter copying process has been completed.")
|
21
16
|
rescue Exception => e
|
22
17
|
print("Copy Error: ".red); puts("#{e.message}".red)
|
23
|
-
@logger.error("Copy Error: #{e.message}")
|
24
18
|
end
|
25
19
|
end
|
26
20
|
end
|
data/lib/sfx_generator.rb
CHANGED
data/lib/version/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: standalone-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
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-13 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: Convert your Ruby projects to exe files!
|
13
13
|
email:
|
@@ -19,7 +19,6 @@ extra_rdoc_files: []
|
|
19
19
|
files:
|
20
20
|
- CHANGELOG.md
|
21
21
|
- bin/standalone-ruby
|
22
|
-
- lib/data/bat-cmd/default_bat_cmd.txt
|
23
22
|
- lib/data/c_compilers/tcc/include/_mingw.h
|
24
23
|
- lib/data/c_compilers/tcc/include/assert.h
|
25
24
|
- lib/data/c_compilers/tcc/include/conio.h
|
@@ -89,103 +88,19 @@ files:
|
|
89
88
|
- lib/data/c_compilers/tcc/lib/msvcrt.def
|
90
89
|
- lib/data/c_compilers/tcc/lib/user32.def
|
91
90
|
- lib/data/c_compilers/tcc/tcc.exe
|
92
|
-
- lib/data/exe_template/launcher_stub.c
|
93
|
-
- lib/data/exe_template/launcher_stub.cpp
|
94
91
|
- lib/data/exe_templates/launcher_stub.c
|
95
92
|
- lib/data/exe_templates/launcher_stub.cpp
|
96
93
|
- lib/data/launcher_templates/vbs/default_vbs.txt
|
97
94
|
- lib/data/launcher_templates/vbs/vbs_gui.txt
|
98
95
|
- lib/data/resource_files/default.rc
|
99
|
-
- lib/data/tcc/include/_mingw.h
|
100
|
-
- lib/data/tcc/include/assert.h
|
101
|
-
- lib/data/tcc/include/conio.h
|
102
|
-
- lib/data/tcc/include/ctype.h
|
103
|
-
- lib/data/tcc/include/dir.h
|
104
|
-
- lib/data/tcc/include/direct.h
|
105
|
-
- lib/data/tcc/include/dirent.h
|
106
|
-
- lib/data/tcc/include/dos.h
|
107
|
-
- lib/data/tcc/include/errno.h
|
108
|
-
- lib/data/tcc/include/excpt.h
|
109
|
-
- lib/data/tcc/include/fcntl.h
|
110
|
-
- lib/data/tcc/include/fenv.h
|
111
|
-
- lib/data/tcc/include/float.h
|
112
|
-
- lib/data/tcc/include/inttypes.h
|
113
|
-
- lib/data/tcc/include/io.h
|
114
|
-
- lib/data/tcc/include/limits.h
|
115
|
-
- lib/data/tcc/include/locale.h
|
116
|
-
- lib/data/tcc/include/malloc.h
|
117
|
-
- lib/data/tcc/include/math.h
|
118
|
-
- lib/data/tcc/include/mem.h
|
119
|
-
- lib/data/tcc/include/memory.h
|
120
|
-
- lib/data/tcc/include/process.h
|
121
|
-
- lib/data/tcc/include/setjmp.h
|
122
|
-
- lib/data/tcc/include/share.h
|
123
|
-
- lib/data/tcc/include/signal.h
|
124
|
-
- lib/data/tcc/include/stdarg.h
|
125
|
-
- lib/data/tcc/include/stdbool.h
|
126
|
-
- lib/data/tcc/include/stddef.h
|
127
|
-
- lib/data/tcc/include/stdint.h
|
128
|
-
- lib/data/tcc/include/stdio.h
|
129
|
-
- lib/data/tcc/include/stdlib.h
|
130
|
-
- lib/data/tcc/include/string.h
|
131
|
-
- lib/data/tcc/include/sys/fcntl.h
|
132
|
-
- lib/data/tcc/include/sys/file.h
|
133
|
-
- lib/data/tcc/include/sys/locking.h
|
134
|
-
- lib/data/tcc/include/sys/stat.h
|
135
|
-
- lib/data/tcc/include/sys/time.h
|
136
|
-
- lib/data/tcc/include/sys/timeb.h
|
137
|
-
- lib/data/tcc/include/sys/types.h
|
138
|
-
- lib/data/tcc/include/sys/unistd.h
|
139
|
-
- lib/data/tcc/include/sys/utime.h
|
140
|
-
- lib/data/tcc/include/tchar.h
|
141
|
-
- lib/data/tcc/include/time.h
|
142
|
-
- lib/data/tcc/include/unistd.h
|
143
|
-
- lib/data/tcc/include/values.h
|
144
|
-
- lib/data/tcc/include/varargs.h
|
145
|
-
- lib/data/tcc/include/wchar.h
|
146
|
-
- lib/data/tcc/include/wctype.h
|
147
|
-
- lib/data/tcc/include/winapi/basetsd.h
|
148
|
-
- lib/data/tcc/include/winapi/basetyps.h
|
149
|
-
- lib/data/tcc/include/winapi/winbase.h
|
150
|
-
- lib/data/tcc/include/winapi/wincon.h
|
151
|
-
- lib/data/tcc/include/winapi/windef.h
|
152
|
-
- lib/data/tcc/include/winapi/windows.h
|
153
|
-
- lib/data/tcc/include/winapi/winerror.h
|
154
|
-
- lib/data/tcc/include/winapi/wingdi.h
|
155
|
-
- lib/data/tcc/include/winapi/winnetwk.h
|
156
|
-
- lib/data/tcc/include/winapi/winnls.h
|
157
|
-
- lib/data/tcc/include/winapi/winnt.h
|
158
|
-
- lib/data/tcc/include/winapi/winreg.h
|
159
|
-
- lib/data/tcc/include/winapi/winsvc.h
|
160
|
-
- lib/data/tcc/include/winapi/winuser.h
|
161
|
-
- lib/data/tcc/include/winapi/winver.h
|
162
|
-
- lib/data/tcc/lib/gdi32.def
|
163
|
-
- lib/data/tcc/lib/kernel32.def
|
164
|
-
- lib/data/tcc/lib/libtcc1.a
|
165
|
-
- lib/data/tcc/lib/msvcrt.def
|
166
|
-
- lib/data/tcc/lib/user32.def
|
167
|
-
- lib/data/tcc/tcc.exe
|
168
|
-
- lib/data/tcc/tiny_impdef.exe
|
169
|
-
- lib/data/tcc/tiny_libmaker.exe
|
170
|
-
- lib/data/vbs/default_vbs.txt
|
171
|
-
- lib/data/vbs/vbs_gui.txt
|
172
96
|
- lib/displayer.rb
|
173
97
|
- lib/exe_packer.rb
|
174
98
|
- lib/launcher.rb
|
175
99
|
- lib/launcher_handler.rb
|
176
|
-
- lib/logger_helper.rb
|
177
100
|
- lib/parameter_parser.rb
|
178
101
|
- lib/ruby_copy.rb
|
179
102
|
- lib/sfx_generator.rb
|
180
103
|
- lib/standalone_ruby.rb
|
181
|
-
- lib/utils/config_generator.rb
|
182
|
-
- lib/utils/displayer.rb
|
183
|
-
- lib/utils/exe_packer.rb
|
184
|
-
- lib/utils/launcher.rb
|
185
|
-
- lib/utils/launcher_handler.rb
|
186
|
-
- lib/utils/logger_helper.rb
|
187
|
-
- lib/utils/parameter_parser.rb
|
188
|
-
- lib/utils/ruby_copy.rb
|
189
104
|
- lib/version/version.rb
|
190
105
|
homepage: https://github.com/ardatetikbey/Standalone-Ruby
|
191
106
|
licenses:
|
@@ -1,30 +0,0 @@
|
|
1
|
-
#include <windows.h>
|
2
|
-
|
3
|
-
int main() {
|
4
|
-
char command[] = "wscript.exe LAUNCHER_FILE";
|
5
|
-
|
6
|
-
STARTUPINFO si = {0};
|
7
|
-
PROCESS_INFORMATION pi = {0};
|
8
|
-
|
9
|
-
if (CreateProcess(
|
10
|
-
NULL,
|
11
|
-
command,
|
12
|
-
NULL,
|
13
|
-
NULL,
|
14
|
-
FALSE,
|
15
|
-
0,
|
16
|
-
NULL,
|
17
|
-
NULL,
|
18
|
-
&si,
|
19
|
-
&pi
|
20
|
-
)) {
|
21
|
-
WaitForSingleObject(pi.hProcess, INFINITE);
|
22
|
-
|
23
|
-
CloseHandle(pi.hProcess);
|
24
|
-
CloseHandle(pi.hThread);
|
25
|
-
} else {
|
26
|
-
|
27
|
-
}
|
28
|
-
|
29
|
-
return 0;
|
30
|
-
}
|
@@ -1,54 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* _mingw.h
|
3
|
-
*
|
4
|
-
* This file is for TCC-PE and not part of the Mingw32 package.
|
5
|
-
*
|
6
|
-
* THIS SOFTWARE IS NOT COPYRIGHTED
|
7
|
-
*
|
8
|
-
* This source code is offered for use in the public domain. You may
|
9
|
-
* use, modify or distribute it freely.
|
10
|
-
*
|
11
|
-
* This code is distributed in the hope that it will be useful but
|
12
|
-
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
13
|
-
* DISCLAIMED. This includes but is not limited to warranties of
|
14
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
15
|
-
*
|
16
|
-
*/
|
17
|
-
|
18
|
-
#ifndef __MINGW_H
|
19
|
-
#define __MINGW_H
|
20
|
-
|
21
|
-
#include <stddef.h>
|
22
|
-
|
23
|
-
#define __int64 long long
|
24
|
-
#define __int32 long
|
25
|
-
#define __int16 short
|
26
|
-
#define __int8 char
|
27
|
-
#define __cdecl __attribute__((__cdecl__))
|
28
|
-
#define __stdcall __attribute__((__stdcall__))
|
29
|
-
#define __declspec(x) __attribute__((x))
|
30
|
-
|
31
|
-
#define __MINGW32_VERSION 2.0
|
32
|
-
#define __MINGW32_MAJOR_VERSION 2
|
33
|
-
#define __MINGW32_MINOR_VERSION 0
|
34
|
-
|
35
|
-
#define __MSVCRT__ 1
|
36
|
-
#define __MINGW_IMPORT extern
|
37
|
-
#define _CRTIMP
|
38
|
-
#define __CRT_INLINE extern __inline__
|
39
|
-
|
40
|
-
#define WIN32 1
|
41
|
-
|
42
|
-
#ifndef _WINT_T
|
43
|
-
#define _WINT_T
|
44
|
-
typedef unsigned int wint_t;
|
45
|
-
#endif
|
46
|
-
|
47
|
-
/* for winapi */
|
48
|
-
#define _ANONYMOUS_UNION
|
49
|
-
#define _ANONYMOUS_STRUCT
|
50
|
-
#define DECLSPEC_NORETURN
|
51
|
-
#define WIN32_LEAN_AND_MEAN
|
52
|
-
#define DECLARE_STDCALL_P(type) __stdcall type
|
53
|
-
|
54
|
-
#endif /* __MINGW_H */
|
@@ -1,71 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
* assert.h
|
3
|
-
*
|
4
|
-
* Define the assert macro for debug output.
|
5
|
-
*
|
6
|
-
* This file is part of the Mingw32 package.
|
7
|
-
*
|
8
|
-
* Contributors:
|
9
|
-
* Created by Colin Peters <colin@bird.fu.is.saga-u.ac.jp>
|
10
|
-
*
|
11
|
-
* THIS SOFTWARE IS NOT COPYRIGHTED
|
12
|
-
*
|
13
|
-
* This source code is offered for use in the public domain. You may
|
14
|
-
* use, modify or distribute it freely.
|
15
|
-
*
|
16
|
-
* This code is distributed in the hope that it will be useful but
|
17
|
-
* WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
|
18
|
-
* DISCLAIMED. This includes but is not limited to warranties of
|
19
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
20
|
-
*
|
21
|
-
* $Revision: 1.2 $
|
22
|
-
* $Author: bellard $
|
23
|
-
* $Date: 2005/04/17 13:14:29 $
|
24
|
-
*
|
25
|
-
*/
|
26
|
-
|
27
|
-
#ifndef _ASSERT_H_
|
28
|
-
#define _ASSERT_H_
|
29
|
-
|
30
|
-
/* All the headers include this file. */
|
31
|
-
#include <_mingw.h>
|
32
|
-
|
33
|
-
#ifndef RC_INVOKED
|
34
|
-
|
35
|
-
#ifdef __cplusplus
|
36
|
-
extern "C" {
|
37
|
-
#endif
|
38
|
-
|
39
|
-
#ifdef NDEBUG
|
40
|
-
|
41
|
-
/*
|
42
|
-
* If not debugging, assert does nothing.
|
43
|
-
*/
|
44
|
-
#define assert(x) ((void)0)
|
45
|
-
|
46
|
-
#else /* debugging enabled */
|
47
|
-
|
48
|
-
/*
|
49
|
-
* CRTDLL nicely supplies a function which does the actual output and
|
50
|
-
* call to abort.
|
51
|
-
*/
|
52
|
-
void _assert (const char*, const char*, int)
|
53
|
-
#ifdef __GNUC__
|
54
|
-
__attribute__ ((noreturn))
|
55
|
-
#endif
|
56
|
-
;
|
57
|
-
|
58
|
-
/*
|
59
|
-
* Definition of the assert macro.
|
60
|
-
*/
|
61
|
-
#define assert(e) ((e) ? (void)0 : _assert(#e, __FILE__, __LINE__))
|
62
|
-
#endif /* NDEBUG */
|
63
|
-
|
64
|
-
#ifdef __cplusplus
|
65
|
-
}
|
66
|
-
#endif
|
67
|
-
|
68
|
-
#endif /* Not RC_INVOKED */
|
69
|
-
|
70
|
-
#endif /* Not _ASSERT_H_ */
|
71
|
-
|