standalone-ruby 1.0 → 1.2
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 +13 -5
- data/bin/standalone-ruby +1 -1
- data/lib/data/bat-cmd/default_bat_cmd.txt +9 -0
- data/lib/data/vbs/vbs_gui.txt +8 -0
- data/lib/standalone_ruby.rb +3 -32
- data/lib/utils/launcher.rb +36 -0
- data/lib/utils/launcher_handler.rb +24 -5
- data/lib/utils/parameter_parser.rb +29 -5
- metadata +5 -3
- data/README.md +0 -153
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1cd37bb7292c869531918c44950fc53378c6ce14328cbf9bc399078b13ae615
|
4
|
+
data.tar.gz: 6ecc1a353744fa17219138c73789b88f2f58237ddbbfa2dcd42d871102019c40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 031ecc895cf91ae3fd3d18d98ef58000c07bb89ba59576f2bc401c4b50bb51d79e7e3bd2197ecd11b4b171ded1f9b49a9f9c46b490ef95530e8f3f06e5793aa9
|
7
|
+
data.tar.gz: 2decfc776f182a26cdbab403fc721b03634084fc9f2682f6bcd9264b3b623ed620cd869ae01f00da814c77ea68bf76ccc8ef9aa669d454685a33e0477070de37
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
|
-
# Changelog
|
2
|
-
|
3
|
-
## [
|
4
|
-
|
5
|
-
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## [1.0] - 2025-03-27
|
4
|
+
- First version of Standalone-Ruby released.
|
5
|
+
|
6
|
+
## [1.1] - 2025-03-28
|
7
|
+
- Added support for projects with visual interfaces.
|
8
|
+
|
9
|
+
## [1.2] - 2025-04-02
|
10
|
+
- Added .cmd file extension support.
|
11
|
+
- Added options for new supports
|
12
|
+
- Project text outputs corrected
|
13
|
+
- Added launcher to lib folder
|
data/bin/standalone-ruby
CHANGED
@@ -0,0 +1,8 @@
|
|
1
|
+
Set objShell = CreateObject("WScript.Shell")
|
2
|
+
|
3
|
+
rubyPath = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName) & "\STANDALONE_RUBY_PATH"
|
4
|
+
scriptPath = CreateObject("Scripting.FileSystemObject").GetParentFolderName(WScript.ScriptFullName) & "\main.rb"
|
5
|
+
|
6
|
+
command = """" & rubyPath & """ """ & scriptPath & """"
|
7
|
+
|
8
|
+
objShell.Run command, 1, False
|
data/lib/standalone_ruby.rb
CHANGED
@@ -1,36 +1,7 @@
|
|
1
|
-
|
2
|
-
require_relative 'utils/displayer'
|
3
|
-
require_relative 'utils/parameter_parser'
|
4
|
-
require_relative 'utils/ruby_copy'
|
5
|
-
require_relative 'utils/launcher_handler'
|
6
|
-
# require_relative 'utils/logger_helper'
|
1
|
+
require_relative 'utils/launcher'
|
7
2
|
|
8
3
|
class StandaloneRuby
|
9
|
-
def initialize
|
10
|
-
@parser = ParameterParser.new
|
11
|
-
@parser.parse
|
12
|
-
|
13
|
-
@params = @parser.params
|
14
|
-
@displayer = Displayer.new(@params)
|
15
|
-
@ruby_copy = RubyCopy.new(@params)
|
16
|
-
@launcher_handler = LauncherHandler.new(@params)
|
17
|
-
end
|
18
|
-
|
19
4
|
def run
|
20
|
-
|
21
|
-
puts "\nProgram interrupted. Shutting down..."
|
22
|
-
exit(0)
|
23
|
-
end
|
24
|
-
|
25
|
-
if @params[:version]
|
26
|
-
puts "Standalone Ruby Gem Version 1.0"
|
27
|
-
return
|
28
|
-
end
|
29
|
-
|
30
|
-
@displayer.banner
|
31
|
-
@displayer.display_params
|
32
|
-
|
33
|
-
@launcher_handler.handle
|
34
|
-
@ruby_copy.robocopy_interpreter
|
5
|
+
Launcher.new.run
|
35
6
|
end
|
36
|
-
end
|
7
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'optparse'
|
2
|
+
|
3
|
+
class Launcher
|
4
|
+
|
5
|
+
require_relative 'displayer'
|
6
|
+
require_relative 'parameter_parser'
|
7
|
+
require_relative 'ruby_copy'
|
8
|
+
require_relative 'launcher_handler'
|
9
|
+
# require_relative 'logger_helper'
|
10
|
+
|
11
|
+
def initialize
|
12
|
+
@parser = ParameterParser.new
|
13
|
+
@parser.parse
|
14
|
+
|
15
|
+
@params = @parser.params
|
16
|
+
@displayer = Displayer.new(@params)
|
17
|
+
@ruby_copy = RubyCopy.new(@params)
|
18
|
+
@launcher_handler = LauncherHandler.new(@params)
|
19
|
+
end
|
20
|
+
|
21
|
+
def run
|
22
|
+
Signal.trap("INT") do
|
23
|
+
puts "\nProgram interrupted. Shutting down..."
|
24
|
+
exit(0)
|
25
|
+
end
|
26
|
+
|
27
|
+
@displayer.banner
|
28
|
+
@displayer.display_params
|
29
|
+
|
30
|
+
@launcher_handler.handle
|
31
|
+
@ruby_copy.robocopy_interpreter
|
32
|
+
|
33
|
+
puts "Program Output Path: #{@params[:project_path]}"
|
34
|
+
puts "Thanks for using Standalone-Ruby!"
|
35
|
+
end
|
36
|
+
end
|
@@ -10,10 +10,16 @@ class LauncherHandler
|
|
10
10
|
puts("\nThe template creation process has been started.")
|
11
11
|
|
12
12
|
if @params[:template]
|
13
|
+
if @params[:gui] == true
|
14
|
+
ruby_file = "rubyw.exe"
|
15
|
+
else
|
16
|
+
ruby_file = "ruby.exe"
|
17
|
+
end
|
18
|
+
|
13
19
|
user_template = @params[:template].to_s
|
14
20
|
content = File.read(user_template)
|
15
21
|
|
16
|
-
content.gsub!("STANDALONE_RUBY_PATH", "#{File.join(File.basename(@params[:ruby_path].to_s), "bin", "
|
22
|
+
content.gsub!("STANDALONE_RUBY_PATH", "#{File.join(File.basename(@params[:ruby_path].to_s), "bin", "#{ruby_file}")}")
|
17
23
|
content.gsub!("STANDALONE_MAIN_FILE", "#{File.basename(@params[:main_file].to_s)}")
|
18
24
|
|
19
25
|
new_launcher_path = File.join(@params[:project_path].to_s, @params[:launcher_name].to_s)
|
@@ -23,13 +29,20 @@ class LauncherHandler
|
|
23
29
|
end
|
24
30
|
else
|
25
31
|
if @params[:launcher_type] == "vbs"
|
26
|
-
|
32
|
+
if @params[:gui] == true
|
33
|
+
vbs_template = File.join(File.expand_path("../data/vbs", __dir__), "vbs_gui.txt")
|
34
|
+
ruby_file = "rubyw.exe"
|
35
|
+
else
|
36
|
+
vbs_template = File.join(File.expand_path("../data/vbs", __dir__), "default_vbs.txt")
|
37
|
+
ruby_file = "ruby.exe"
|
38
|
+
end
|
39
|
+
|
27
40
|
puts "Using: #{vbs_template}"
|
28
41
|
|
29
42
|
if File.exist?(vbs_template)
|
30
43
|
content = File.read(vbs_template)
|
31
44
|
|
32
|
-
content.gsub!("STANDALONE_RUBY_PATH", "#{File.join(File.basename(@params[:ruby_path].to_s), "bin", "
|
45
|
+
content.gsub!("STANDALONE_RUBY_PATH", "#{File.join(File.basename(@params[:ruby_path].to_s), "bin", "#{ruby_file}")}")
|
33
46
|
content.gsub!("STANDALONE_MAIN_FILE", "#{File.basename(@params[:main_file].to_s)}")
|
34
47
|
|
35
48
|
new_launcher_path = File.join(@params[:project_path].to_s, @params[:launcher_name].to_s)
|
@@ -42,13 +55,19 @@ class LauncherHandler
|
|
42
55
|
exit!
|
43
56
|
end
|
44
57
|
else
|
45
|
-
|
58
|
+
if @params[:gui] == true
|
59
|
+
ruby_file = "rubyw.exe"
|
60
|
+
else
|
61
|
+
ruby_file = "ruby.exe"
|
62
|
+
end
|
63
|
+
|
64
|
+
bat_template = File.join(File.expand_path("../data/bat-cmd", __dir__), "default_bat_cmd.txt")
|
46
65
|
puts "Using: #{bat_template}"
|
47
66
|
|
48
67
|
if File.exist?(bat_template)
|
49
68
|
content = File.read(bat_template)
|
50
69
|
|
51
|
-
content.gsub!("STANDALONE_RUBY_PATH", "#{File.join(File.basename(@params[:ruby_path].to_s), "bin", "
|
70
|
+
content.gsub!("STANDALONE_RUBY_PATH", "#{File.join(File.basename(@params[:ruby_path].to_s), "bin", "#{ruby_file}")}")
|
52
71
|
content.gsub!("STANDALONE_MAIN_FILE", "#{File.basename(@params[:main_file].to_s)}")
|
53
72
|
|
54
73
|
new_launcher_path = File.join(@params[:project_path].to_s, @params[:launcher_name].to_s)
|
@@ -18,7 +18,13 @@ class ParameterParser
|
|
18
18
|
help_text = <<~EOT
|
19
19
|
Standalone-Ruby - Make your projects installation independent!
|
20
20
|
|
21
|
-
Usage: ruby
|
21
|
+
Usage: standalone-ruby [subcommand] [options]
|
22
|
+
|
23
|
+
Subcommands:
|
24
|
+
archive - archived default output
|
25
|
+
exe - Compressed output to exe file (will be added soon)
|
26
|
+
setup - Output converted to setup file (will be added soon)
|
27
|
+
zip - Reduced size archive output (will be added soon)
|
22
28
|
|
23
29
|
Options:
|
24
30
|
-p, --project PROJECT_PATH Target Ruby project path.
|
@@ -30,8 +36,8 @@ class ParameterParser
|
|
30
36
|
-m, --main MAIN_FILE Path to the main Ruby file of the project.
|
31
37
|
Ensures that the specified Ruby file exists.
|
32
38
|
|
33
|
-
-l, --launcher LAUNCHER Launcher file name (either .vbs or .bat).
|
34
|
-
Ensure the launcher file exists and is of the correct type (either .vbs or .bat).
|
39
|
+
-l, --launcher LAUNCHER Launcher file name (either .vbs or .bat-cmd).
|
40
|
+
Ensure the launcher file exists and is of the correct type (either .vbs or .bat-cmd).
|
35
41
|
|
36
42
|
-t, --template TEMPLATE Template file for launcher.
|
37
43
|
Ensures that the specified template file exists.
|
@@ -39,8 +45,13 @@ class ParameterParser
|
|
39
45
|
-c, --threads THREADS Number of threads to use (default is 5).
|
40
46
|
Determines the number of threads used during the Ruby interpreter copy process and for Rubocopy operations.
|
41
47
|
A higher number of threads can speed up the process, but requires more system resources.
|
48
|
+
|
49
|
+
-g, --gui This option allows the rubyw.exe file in the bin folder to be used.
|
50
|
+
You can choose it for projects that include GUI.
|
51
|
+
|
52
|
+
-h, --help Show this help message.
|
42
53
|
|
43
|
-
|
54
|
+
--version Show program version.
|
44
55
|
|
45
56
|
For more details, please visit the documentation at:
|
46
57
|
https://github.com/ardatetikbey/Standalone-Ruby
|
@@ -98,7 +109,7 @@ class ParameterParser
|
|
98
109
|
end
|
99
110
|
end
|
100
111
|
|
101
|
-
opts.on("-l", "--launcher LAUNCHER", String, "Launcher file name.type (vbs or bat)") do |launcher|
|
112
|
+
opts.on("-l", "--launcher LAUNCHER", String, "Launcher file name.type (vbs or bat-cmd)") do |launcher|
|
102
113
|
launcher.strip!
|
103
114
|
if launcher.include?(".vbs")
|
104
115
|
@params[:launcher] = launcher
|
@@ -108,6 +119,10 @@ class ParameterParser
|
|
108
119
|
@params[:launcher] = launcher
|
109
120
|
@params[:launcher_type] = "bat"
|
110
121
|
@params[:launcher_name] = File.basename(launcher)
|
122
|
+
elsif launcher.include?(".cmd")
|
123
|
+
@params[:launcher] = launcher
|
124
|
+
@params[:launcher_type] = "cmd"
|
125
|
+
@params[:launcher_name] = File.basename(launcher)
|
111
126
|
else
|
112
127
|
print("Parser Error: ".red); puts("The supported launcher #{launcher} could not be found!")
|
113
128
|
exit!
|
@@ -124,6 +139,15 @@ class ParameterParser
|
|
124
139
|
end
|
125
140
|
end
|
126
141
|
|
142
|
+
opts.on("-g", "--gui", "Project mode with visual interface") do
|
143
|
+
@params[:gui] = true
|
144
|
+
end
|
145
|
+
|
146
|
+
opts.on("--version") do
|
147
|
+
puts "Standalone Ruby Gem Version 1.2"
|
148
|
+
exit!
|
149
|
+
end
|
150
|
+
|
127
151
|
opts.on("-h", "--help", "Show this help message") do
|
128
152
|
display_help
|
129
153
|
exit!
|
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.
|
4
|
+
version: '1.2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arda Tetik
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-
|
10
|
+
date: 2025-04-02 00:00:00.000000000 Z
|
11
11
|
dependencies: []
|
12
12
|
description: Make your projects installation independent!
|
13
13
|
email:
|
@@ -18,12 +18,14 @@ extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- CHANGELOG.md
|
21
|
-
- README.md
|
22
21
|
- bin/standalone-ruby
|
22
|
+
- lib/data/bat-cmd/default_bat_cmd.txt
|
23
23
|
- lib/data/bat/default_bat.txt
|
24
24
|
- lib/data/vbs/default_vbs.txt
|
25
|
+
- lib/data/vbs/vbs_gui.txt
|
25
26
|
- lib/standalone_ruby.rb
|
26
27
|
- lib/utils/displayer.rb
|
28
|
+
- lib/utils/launcher.rb
|
27
29
|
- lib/utils/launcher_handler.rb
|
28
30
|
- lib/utils/logger_helper.rb
|
29
31
|
- lib/utils/parameter_parser.rb
|
data/README.md
DELETED
@@ -1,153 +0,0 @@
|
|
1
|
-
# Project: Standalone Ruby
|
2
|
-
|
3
|
-

|
4
|
-
|
5
|
-
Contact: ardatetikruby@gmail.com
|
6
|
-
|
7
|
-
---
|
8
|
-
|
9
|
-
## Özellikler / Features / Funktionen / 機能
|
10
|
-
|
11
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/b4/Flag_of_Turkey.svg" width="20"/> Windows sistemlerde Ruby kurulumuna ihtiyaç duymadan Ruby ile yazdığınız projelerinizi çalıştırabilmenize olanak sağlar.
|
12
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg" width="20"/> It allows you to run your projects written with Ruby on Windows systems without the need for a Ruby installation.
|
13
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/ba/Flag_of_Germany.svg" width="20"/> Es ermöglicht Ihnen, Ihre mit Ruby geschriebenen Projekte auf Windows-Systemen auszuführen, ohne dass eine Ruby-Installation erforderlich ist.
|
14
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/9/9e/Flag_of_Japan.svg" width="20"/> これにより、Ruby をインストールしなくても、Windows システム上で Ruby で記述されたプロジェクトを実行できるようになります。
|
15
|
-
|
16
|
-
---
|
17
|
-
|
18
|
-
## Program Mantığı / Logic / Logik / 論理
|
19
|
-
|
20
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/b4/Flag_of_Turkey.svg" width="20"/> Bu program, Ruby yorumlayıcısının dizinini, proje klasörünü ve projenin ana dosyasının yolunu alır. Bu değerleri, seçime bağlı olarak VBS veya BAT uzantılı başlatıcı dosyanın içine uygun şekilde yerleştirir ve belirtilen Ruby yorumlayıcısını proje dizinine kopyalar. Başlatıcı dosya çalıştırıldığında, ilgili Ruby yorumlayıcısını kullanarak projenin ana dosyasını açar.
|
21
|
-
|
22
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg" width="20"/>This program takes the Ruby interpreter directory, the project folder, and the path to the project's main file. It places these values appropriately in a starter file, optionally with a VBS or BAT extension, and copies the specified Ruby interpreter to the project directory. When the starter file is run, it opens the project's main file using the corresponding Ruby interpreter.
|
23
|
-
|
24
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/ba/Flag_of_Germany.svg" width="20"/> Dieses Programm verwendet das Ruby-Interpreterverzeichnis, den Projektordner und den Pfad zur Hauptdatei des Projekts. Es platziert diese Werte entsprechend in einer Starterdatei, optional mit einer VBS- oder BAT-Erweiterung, und kopiert den angegebenen Ruby-Interpreter in das Projektverzeichnis. Wenn die Startdatei ausgeführt wird, öffnet sie die Hauptdatei des Projekts mithilfe des zugehörigen Ruby-Interpreters.
|
25
|
-
|
26
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/9/9e/Flag_of_Japan.svg" width="20"/> このプログラムは、Ruby インタープリター ディレクトリ、プロジェクト フォルダー、およびプロジェクトのメイン ファイルへのパスを受け取ります。これらの値をスターター ファイル(オプションで VBS または BAT 拡張子)に適切に配置し、指定された Ruby インタープリターをプロジェクト ディレクトリにコピーします。ランチャー ファイルが実行されると、関連付けられた Ruby インタープリターを使用してプロジェクトのメイン ファイルが開きます。
|
27
|
-
|
28
|
-
---
|
29
|
-
|
30
|
-
## Kullanım / Use / Verwenden / 使用するには
|
31
|
-
|
32
|
-
## Example Command:
|
33
|
-
|
34
|
-
```bash
|
35
|
-
standalone-ruby -p "C:/Users/User/Desktop/PRJCT" -r "C:/Users/User/Documents/Ruby34-x64" -m "C:/Users/User/Desktop/myproject/main.rb" -l launcher1.vbs -c 10
|
36
|
-
```
|
37
|
-
|
38
|
-
## Parametreler / Parameters / Parameter / パラメータ
|
39
|
-
|
40
|
-
#### 1. `-p, --project PROJECT_PATH`
|
41
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/b4/Flag_of_Turkey.svg" width="20"/> Hedef Ruby projesinin yolunu belirtir. Verilen proje yolunun varlığını kontrol eder.
|
42
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg" width="20"/> Specifies the target Ruby project path. It checks that the given project path exists.
|
43
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/ba/Flag_of_Germany.svg" width="20"/> Gibt den Pfad zum Ziel-Ruby-Projekt an. Überprüft, ob der angegebene Projektpfad existiert.
|
44
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/9/9e/Flag_of_Japan.svg" width="20"/> ターゲット Ruby プロジェクトへのパスを指定します。指定されたプロジェクト パスが存在するかどうかを確認します。
|
45
|
-
|
46
|
-
#### 2. `-r, --ruby RUBY_PATH`
|
47
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/b4/Flag_of_Turkey.svg" width="20"/> Ruby yorumlayıcısının yolunu tanımlar. Verilen Ruby yolunun varlığını ve içinde 'bin' dizini olup olmadığını kontrol eder.
|
48
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg" width="20"/> Defines the path to the Ruby interpreter. It checks that the given Ruby path exists and contains a 'bin' directory.
|
49
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/ba/Flag_of_Germany.svg" width="20"/> Definiert den Pfad zum Ruby-Interpreter. Überprüft, ob der angegebene Ruby-Pfad existiert und ob er das Verzeichnis „bin“ enthält.
|
50
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/9/9e/Flag_of_Japan.svg" width="20"/> Ruby インタープリターへのパスを定義します。指定された Ruby パスが存在するかどうか、またそこに 'bin' ディレクトリが含まれているかどうかを確認します。
|
51
|
-
|
52
|
-
#### 3. `-m, --main MAIN_FILE`
|
53
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/b4/Flag_of_Turkey.svg" width="20"/> Projenin ana Ruby dosyasının yolunu belirtir. Verilen Ruby dosyasının varlığını kontrol eder.
|
54
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg" width="20"/> Provides the path to the main Ruby file of the project. It ensures that the specified Ruby file exists.
|
55
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/ba/Flag_of_Germany.svg" width="20"/> Gibt den Pfad zur Ruby-Hauptdatei des Projekts an. Überprüft, ob die angegebene Ruby-Datei vorhanden ist.
|
56
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/9/9e/Flag_of_Japan.svg" width="20"/> プロジェクトのメイン Ruby ファイルのパスを指定します。指定された Ruby ファイルの存在を確認します。
|
57
|
-
|
58
|
-
#### 4. `-l, --launcher LAUNCHER`
|
59
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/b4/Flag_of_Turkey.svg" width="20"/> Çalıştırıcı dosyasının adını belirtir, bu dosya `.vbs` veya `.bat` formatlarında olabilir. Çalıştırıcı dosyasının varlığını ve uygun türde olduğunu kontrol eder.
|
60
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg" width="20"/> Specifies the launcher file name, which can either be `.vbs` or `.bat`. It checks whether the launcher file exists and is of the correct type.
|
61
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/ba/Flag_of_Germany.svg" width="20"/> Gibt den Namen der ausführbaren Datei an. Diese Datei kann „.vbs“ oder „.bat“ sein. Überprüft, ob die ausführbare Datei vorhanden ist und vom richtigen Typ ist.
|
62
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/9/9e/Flag_of_Japan.svg" width="20"/> 実行可能ファイルの名前を指定します。このファイルは `.vbs` または `.bat` にすることができます。実行可能ファイルが存在し、正しいタイプであることを確認します。
|
63
|
-
|
64
|
-
#### 5. `-c, --threads THREADS`
|
65
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/b4/Flag_of_Turkey.svg" width="20"/> Kullanılacak thread sayısını belirtir. Varsayılan değer 5'tir. Bu parametre, Ruby yorumlayıcısının kopyalanma işlemi sırasında kullanılacak thread sayısını belirtir.
|
66
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg" width="20"/> Specifies the number of threads to use. The default value is 5. This parameter specifies the number of threads to use during the copy operation of the Ruby interpreter.
|
67
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/ba/Flag_of_Germany.svg" width="20"/> Gibt die Anzahl der zu verwendenden Threads an. Der Standardwert ist 5. Dieser Parameter gibt die Anzahl der Threads an, die während des Kopiervorgangs des Ruby-Interpreters verwendet werden sollen.
|
68
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/9/9e/Flag_of_Japan.svg" width="20"/> 使用するスレッドの数を指定します。デフォルト値は 5 です。このパラメータは、Ruby インタープリタのコピー プロセス中に使用されるスレッドの数を指定します。
|
69
|
-
|
70
|
-
#### 6. `-h, --help`
|
71
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/b4/Flag_of_Turkey.svg" width="20"/> Yardım mesajını görüntüler.
|
72
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg" width="20"/> Displays the help message.
|
73
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/ba/Flag_of_Germany.svg" width="20"/> Zeigt die Hilfemeldung an.
|
74
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/9/9e/Flag_of_Japan.svg" width="20"/> ヘルプメッセージを表示します。
|
75
|
-
|
76
|
-
---
|
77
|
-
|
78
|
-
## Notlar / Notes / Anmerkungen / ノート
|
79
|
-
|
80
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/b4/Flag_of_Turkey.svg" width="20"/> **Program Notları**
|
81
|
-
- Sağlanan yolların geçerli ve sisteminizden erişilebilir olduğundan emin olun.
|
82
|
-
- Başlatıcı dosya türü Windows sistemleri için `.vbs` veya `.bat` olmalıdır.
|
83
|
-
- `threads` seçeneği kopyalama sürecinde performansı önemli ölçüde etkileyebilir, bu nedenle sisteminizin kapasitesine göre dikkatli kullanın.
|
84
|
-
- Kullandığınız Ruby yorumlayıcısının çalıştıracağınız proje için bütün gem dosyalarını içerdiğinden emin olun.
|
85
|
-
- Daha fazla ayrıntı için resmi [GitHub Deposu](https://github.com/ardatetikbey/Standalone-Ruby)'na bakın.
|
86
|
-
|
87
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg" width="20"/> **Program Notes**
|
88
|
-
- Make sure that the provided paths are valid and accessible from your system.
|
89
|
-
- The launcher file type must be either `.vbs` or `.bat` for Windows systems.
|
90
|
-
- The `threads` option can significantly impact performance during the copying process, so use it wisely based on your system’s capabilities.
|
91
|
-
- Make sure that the Ruby interpreter you are using includes all the gem files for the project you will be running.
|
92
|
-
- For more details, refer to the official [GitHub Repository](https://github.com/ardatetikbey/Standalone-Ruby).
|
93
|
-
|
94
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/ba/Flag_of_Germany.svg" width="20"/> **Programmanmerkungen**
|
95
|
-
- Stellen Sie sicher, dass die angegebenen Pfade gültig und von Ihrem System zugänglich sind.
|
96
|
-
- Der Typ der Startdatei muss entweder `.vbs` oder `.bat` für Windows-Systeme sein.
|
97
|
-
- Die Option `threads` kann die Leistung während des Kopiervorgangs erheblich beeinflussen. Verwenden Sie sie daher entsprechend den Fähigkeiten Ihres Systems.
|
98
|
-
- Stellen Sie sicher, dass der von Ihnen verwendete Ruby-Interpreter alle Gem-Dateien für das Projekt enthält, das Sie ausführen werden.
|
99
|
-
- Weitere Details finden Sie im offiziellen [GitHub-Repository](https://github.com/ardatetikbey/Standalone-Ruby).
|
100
|
-
|
101
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/9/9e/Flag_of_Japan.svg" width="20"/> **プログラムの注意事項**
|
102
|
-
- 指定されたパスが有効であり、システムからアクセス可能であることを確認してください。
|
103
|
-
- ランチャーファイルの種類は、Windows システムでは `.vbs` または `.bat` である必要があります。
|
104
|
-
- `threads` オプションはコピー処理中のパフォーマンスに大きな影響を与える可能性があるため、システムの能力に応じて適切に使用してください。
|
105
|
-
- 使用している Ruby インタープリターに、実行するプロジェクトのすべての gem ファイルが含まれていることを確認してください。
|
106
|
-
- 詳細については、公式の [GitHub リポジトリ](https://github.com/ardatetikbey/Standalone-Ruby) を参照してください。
|
107
|
-
|
108
|
-
---
|
109
|
-
|
110
|
-
## Yapılacaklar / To Do List / やるべきこと
|
111
|
-
|
112
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/b4/Flag_of_Turkey.svg" width="20"/> **Yapılacaklar**
|
113
|
-
- Logger Desteği - Programın çalışmasını ve hata ayıklamayı kolaylaştırmak için loglama mekanizması eklenecek.
|
114
|
-
- GUI Arayüzü - Kullanıcıların daha kolay işlem yapabilmesi için basit bir grafik arayüz geliştirilecek.
|
115
|
-
- Şifrelenmiş Ruby Çalıştırma - Ruby betiklerini şifreleyerek koruma sağlanacak ve çözüp çalıştırma özelliği eklenecek.
|
116
|
-
- Çapraz Platform Desteği - Linux ve macOS sistemlerinde benzer bir çalışma mantığı sunacak destek eklenmesi.
|
117
|
-
- Özel Çalıştırıcı Dosya Biçimleri - .vbs ve .bat dışında alternatif çalıştırıcı dosya formatları eklenmesi.
|
118
|
-
- Inno Setup EXE Desteği - Proje çıktısında oluşan başlatıcı dosyanın proje dosyalarıyla beraber bir setup haline getirilmesi.
|
119
|
-
|
120
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg" width="20"/> **To-Do List**
|
121
|
-
- Logger Support - A logging mechanism will be added to facilitate debugging and monitoring the program’s operation.
|
122
|
-
- GUI Interface - A simple graphical user interface will be developed to make it easier for users to operate.
|
123
|
-
- Encrypted Ruby Execution - Ruby scripts will be encrypted for protection and will have an option to be decrypted and executed.
|
124
|
-
- Cross-Platform Support - Support for running on Linux and macOS with similar functionality will be added.
|
125
|
-
- Custom Execution File Formats - Alternative execution file formats will be introduced beyond .vbs and .bat.
|
126
|
-
- Inno Setup EXE Support - Converting the launcher file created in the project output into a setup along with the project files.
|
127
|
-
|
128
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/ba/Flag_of_Germany.svg" width="20"/> **Aufgabenliste**
|
129
|
-
- Logger-Unterstützung - Ein Logging-Mechanismus wird hinzugefügt, um die Programmausführung und das Debuggen zu erleichtern.
|
130
|
-
- GUI-Oberfläche - Eine einfache grafische Benutzeroberfläche wird entwickelt, um den Benutzern die Durchführung von Aufgaben zu erleichtern.
|
131
|
-
- Verschlüsselte Ruby-Ausführung - Ruby-Skripte werden zum Schutz verschlüsselt, und eine Entschlüsselungs- und Ausführungsfunktion wird hinzugefügt.
|
132
|
-
- Cross-Platform-Unterstützung - Es wird Unterstützung hinzugefügt, um ähnliche Funktionen auf Linux- und macOS-Systemen bereitzustellen.
|
133
|
-
- Benutzerdefinierte Launcher-Dateiformate - Es werden alternative Launcher-Dateiformate hinzugefügt, außer .vbs und .bat.
|
134
|
-
- Konvertieren der in der Projektausgabe erstellten Launcher-Datei zusammen mit den Projektdateien in ein Setup.
|
135
|
-
|
136
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/9/9e/Flag_of_Japan.svg" width="20"/> **やることリスト**
|
137
|
-
- ロガーサポート - プログラムの実行とデバッグを容易にするためにロギングメカニズムが追加されます。
|
138
|
-
- GUIインターフェース - ユーザーがより簡単に作業を行えるようにシンプルなグラフィカルインターフェースが開発されます。
|
139
|
-
- 暗号化されたRuby実行 - Rubyスクリプトが保護のために暗号化され、復号化して実行する機能が追加されます。
|
140
|
-
- クロスプラットフォームサポート - LinuxおよびmacOSシステムで同様の機能が提供されるサポートが追加されます。
|
141
|
-
- カスタムランチャーファイル形式 - .vbsおよび.bat以外の代替ランチャーファイル形式が追加されます。
|
142
|
-
- プロジェクト出力で作成されたランチャー ファイルをプロジェクト ファイルとともにセットアップに変換します。
|
143
|
-
|
144
|
-
---
|
145
|
-
|
146
|
-
## Lisans / License / Lizenz / ライセンス
|
147
|
-
|
148
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/b4/Flag_of_Turkey.svg" width="20"/> Bu proje MIT Lisansı altında lisanslanmıştır.
|
149
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_United_States.svg" width="20"/> This project is licensed under the MIT License.
|
150
|
-
- <img src="https://upload.wikimedia.org/wikipedia/commons/b/ba/Flag_of_Germany.svg" width="20"/> Dieses Projekt ist unter der MIT-Lizenz lizenziert.
|
151
|
-
- <img src="https://upload.wikimedia.org/wikipedia/en/9/9e/Flag_of_Japan.svg" width="20"/> このプロジェクトはMITライセンスの下でライセンスされています。
|
152
|
-
|
153
|
-
🔗 **GitHub:** [Project Standalone-Ruby](https://github.com/ardatetikbey/Standalone-Ruby)
|