ocran 1.4.0-arm64-darwin-23

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 ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1f01d0507c5db6deb8f1334eb9a73cb4e7099b74337122438e8668c68412d11e
4
+ data.tar.gz: 6ca50b0293114f14375b084ab3587e80f8026e885a7fb30a09cf0e15cb84ad87
5
+ SHA512:
6
+ metadata.gz: '0593bd0c007aacf45cac1c38c541de60031e33f0b79ed23eb7bab5ecec06700045eff4b0be151437d3d88da352849682650c74473af4f09211800df6adcb0840'
7
+ data.tar.gz: f74781845208df3eb52fd0038f1ee17416310d33f7870f3ca970334ae302f7b0fa75d2ff4756087dfd103e069e82ef42b29bac26c228f22eadf5404a4436304c
data/CHANGELOG.txt ADDED
@@ -0,0 +1,306 @@
1
+ === 1.4.0
2
+ - Add Linux support: build and run self-extracting ELF executables on Linux. The stub compiles and runs natively on Linux using POSIX APIs.
3
+ - Add macOS support: build and run self-extracting Mach-O executables on macOS.
4
+ - Add `--output-dir` option: output all files to a directory with a platform-appropriate launch script (`.sh` on Linux/macOS, `.bat` on Windows) instead of a single executable.
5
+ - Add `--output-zip` option: same as `--output-dir` but packages the result into a zip archive.
6
+ - Add `--macosx-bundle` option: wrap the macOS executable in a `.app` bundle with a generated `Info.plist`, suitable for Finder, the Dock, and Authenticode-style code signing with `codesign` and `xcrun notarytool`. Use `--bundle-id` to set `CFBundleIdentifier` and `--icon` (`.icns`) to set the bundle icon.
7
+ - Use symlinks for shared library aliases on POSIX (e.g. `libruby.so → libruby.so.4.0`) instead of copying files, matching the layout Ruby expects at runtime.
8
+ - Fix crash on cleanup when a symlink target does not exist: `DeleteRecursively` now uses `lstat` instead of `stat` so dangling symlinks are removed correctly.
9
+ - Publish platform-specific gems for Linux, macOS (ARM and Intel), and Windows so `gem install ocran` selects the right pre-built stub automatically.
10
+ - Publish a source gem (`ruby` platform) with `ext/extconf.rb` so users on unlisted platforms can install by compiling the stub from source. Falls back to plain `make` if `ridk exec make` is unavailable on Windows.
11
+ - CI: add GitHub Actions workflow to build and publish per-platform gems on tag push.
12
+ - CI: run the packed Linux executable inside a Debian Docker container to verify cross-distro portability (no Ruby required on target).
13
+ - CI: test against Ruby 3.2, 3.3, 3.4, and 4.0 on Linux, macOS (ARM and Intel), and Windows.
14
+
15
+ === 1.3.18
16
+ - Support shipping IRB as .exe File
17
+ - Fix SxS error 14001 when loading native extensions (e.g. openssl.so, date_core.so) at runtime. Each .so file may have a companion *.so-assembly.manifest in archdir defining its private SxS assembly; these manifests are now included alongside the .so files. All files in ruby_builtin_dlls/ (DLLs and manifest) are now included rather than the manifest alone.
18
+ - Support for Ruby 4.0.
19
+ - Include cacert.pem in the exe file to avoid SSL certificate verification issues.
20
+ - Use wide (UTF-16) Win32 APIs throughout system_utils.c (CreateFileW, CreateDirectoryW, DeleteFileW, FindFirstFileW/FindNextFileW, RemoveDirectoryW, GetFileAttributesW, MoveFileExW, GetTempPathW, CreateProcessW) to correctly handle multibyte (UTF-8) file and directory paths in the stub.
21
+ - Add Windows Authenticode code signing support. The stub now detects and skips PE security directory entries when searching for the OCRAN signature, so signed executables unpack correctly. Build time clears invalid security directory entries from PE headers to allow subsequent signing.
22
+ - Fix incorrect buffer size passed to GetModuleFileNameW in LibraryDetector (passed bytesize instead of character count).
23
+ - Fix pointer subtraction underflow in stub unpacker when a tampered offset places head past tail.
24
+ - Add bounds checking for icon file entries in edicon to prevent out-of-bounds reads from malformed .ico files.
25
+ - Support for Ruby 3.2 and above. Drop ruby 3.0 and 3.1 support.
26
+ - Suppress user notifications during stub cleanup and log errors to DEBUG output
27
+ - Fixes issue where two MessageBox dialogs appeared in GUI mode when a signature was not found.
28
+ - No longer create a marker file when the stub fails to delete the installation directory during cleanup.
29
+ - stub: During cleanup, switch to a safer working directory before removing the extraction directory.
30
+ - stub: Truncate error messages originating from the stub to a fixed maximum length.
31
+ - stub: Changed the name of the extraction directory to follow the mkdtemp style. The name is now generated using secure random numbers.
32
+ - stub: Disabled path expansion of template characters for additional options passed to the script.
33
+ - stub: Changed the script’s working directory switch to use Ruby’s `-C` option.
34
+
35
+ === 1.3.17
36
+ - Modified `rake test` to no longer build stubs during test execution. Use `rake build_stub` when stub generation is necessary.
37
+ - New `rake build` task as a unified build entry point, delegating to `build_stub`.
38
+ - Updated GitHub Actions and internal scripts to use `rake build` instead of `rake build_stub`.
39
+ - Add full support for multibyte (UTF-8) names across executables, scripts, and resources. Requires Windows 10 version 1903 or later.
40
+ - Added UTF-8 manifest to stub.exe to enable UTF-8 support in ANSI API calls.
41
+ - Update Bundler from 2.5.10 to 2.5.23. This is the last Bundler version officially supporting Ruby 3.0.
42
+ - Added `bin/setup` and `bin/console` scripts for development (both Bash and Windows .bat versions).
43
+ - `bin/setup` now installs dependencies and builds stub executables automatically.
44
+ - Improved `spec.files` to explicitly include README, LICENSE, and CHANGELOG.
45
+ - Introduced a `Development` section in the README with setup instructions and Windows shell compatibility.
46
+ - Updated copyright year in README and LICENSE.
47
+
48
+ === 1.3.16
49
+ - Support for Ruby 3.0 and above. Drop ruby 2.6 and 2.7 support.
50
+ - At startup, OCRAN no longer automatically removes directories that were previously deployed but couldn't be deleted. This change has been made to enhance security by preventing processes other than the startup process from manipulating temporary files created by them.
51
+ - The ability for the stub to launch any script during the unpacking of application files has been removed. This feature was not in use.
52
+ - The exit code from the Ruby application is now returned when the stub is terminated.
53
+ - The packed data no longer contains redundant directory information.
54
+ - Fixed errors in the --debug option.
55
+ - Upgraded LZMA decoder to version 22.01
56
+ - The directory generation for file extraction has been changed to use unique directory names created with high-resolution timestamps. Additionally, a retry limit for directory creation has been introduced, reducing the risk of infinite loops due to name collisions.
57
+ - Implemented variable-length buffer handling for path strings in stub, eliminating the risk of buffer overruns dependent on MAX_PATH.
58
+ - In order to reduce security risks during the cleanup process before application termination, we have implemented a safe current directory change from the system directory and the root of the C drive to the user's temporary directory and the directory of the app executable.
59
+ - The 'stub' executable has been enhanced for security, ensuring it prevents directory traversal attacks by verifying that path elements do not contain relative notations like '.' or '..'.
60
+ - Removed OcranBuilder and split functionality into StubBuilder and InnoSetupBuilder to introduce delayed loading and improve resource efficiency.
61
+ - InnoSetup installer now operates independently of stub, launching through its own batch file.
62
+ - Moved LibraryDetector to a separate file for modularity and implemented delayed loading with standardized Fiddle usage.
63
+ - Update Bundler from 2.4.13 to 2.5.10.
64
+ - Fixed issue where the gem.build_complete file was not included in the package due to an incorrect change.
65
+ - Changed error output from standard output to standard error (stderr).
66
+ - ocransa (Ocran-stand-alone) has been discontinued.
67
+ - The implementation of bin/ocran.rb has been refactored and split into multiple files. These files have been relocated to the lib directory.
68
+
69
+ === 1.3.15
70
+ - Support for Ruby 2.6 and above.
71
+ - Properly display errors from InnoSetup.
72
+ - Fixed errors when creating an installer using InnoSetup. Previously, installer creation was not possible due to errors related to file sharing, which occurred only on Windows.
73
+ - Retrieve the path of runtime DLLs even when the path is long. Note that stubs still do not support long paths, so creating executable files with long paths is not yet possible.
74
+ - Fixed bugs in tests. All tests can now be executed.
75
+ - Improved the speed of manifest file discovery. This manifest file is only required in the RubyInstaller environment.
76
+ - Fixed bugs in the regular expressions of GEM_EXTRA_RE. This allows excluding C source files, etc., from the ocran executable package based on command options.
77
+ - Added methods to Ocran::Pathname, making it closer to the implementation of Ruby's Pathname.
78
+ - Reimplemented certain parts to match the implementation of Ruby 2.6 era, for compatibility with older Ruby versions. Therefore, the ocran command cannot be executed on Ruby versions earlier than 2.6.
79
+
80
+ === 1.3.14
81
+ - Add option to suppress or override RUBYOPT environment variable #3 by ccorn90
82
+
83
+ === 1.3.13
84
+ - Fixed the bug why Innosetup did not run because of missing encode method
85
+ - Fix an issue where rubyinstaller did not find the msys path by putting in an empty msys-2.0.dll into msys64/usr/bin/msys-2.0.dll
86
+ - compatibility with the tiny_tds gem (see above)
87
+ - GitHub builds through github action: making sure you can trust the included binaries.
88
+ - Added some samples including the glimmer-libui GUI example. GUI that starts fast.
89
+
90
+ === 1.3.12
91
+ * Forked from Ocra
92
+ * Support Ruby up to 3.2
93
+ * Update lzma.exe to version 22.01
94
+
95
+ === 1.3.11
96
+
97
+ * Support Ruby 2.2-2.7
98
+ * Add ruby2_keywords.rb to ignored modules
99
+ * Update lzma.exe to version 19.00
100
+ * Workaround for warning about deprecated Object#=~
101
+ * Use Fiddle instead of Win32API
102
+ * Fix for invalid argument to relative_path_from
103
+
104
+ === 1.3.10
105
+
106
+ * Reduce memory usage while building & compressing (avoids out of
107
+ memory issue on really big programs).
108
+
109
+ * Compile stub.exe with 32-bit compiler again
110
+
111
+ === 1.3.9
112
+
113
+ * Support Ruby 2.4.1p111 (include manifest)
114
+
115
+ === 1.3.8
116
+
117
+ * Use GetModuleFileNameW for DLL detection
118
+
119
+ === 1.3.7
120
+
121
+ * Workaround for handling of file names and directory name with
122
+ non-ASCII characters (e.g. "invalid byte sequence in UTF-8")
123
+
124
+ === 1.3.6
125
+
126
+ * More robust cleanup of temporary files. Deletes using manual
127
+ recursive method instead of using the shell. Will mark files for
128
+ later deletion both using Windows (requires Administrator
129
+ privileges) and a custom method that will remove old temporary files
130
+ when the executable is restarted.
131
+
132
+ === 1.3.5
133
+
134
+ * Fixes for Ruby 2.2.2p95
135
+
136
+ === 1.3.4
137
+
138
+ * Workarounds for Ruby 2.1.5
139
+
140
+ === 1.3.3
141
+
142
+ * Rebuild executables with MinGW GCC 4.8.1-4.
143
+
144
+ === 1.3.2
145
+
146
+ * Refactored Gemfile handling for better compatibility with Ruby
147
+ version.
148
+
149
+ === 1.3.1
150
+
151
+ * Now includes $LOADED_FEATURES even when script is not run to check
152
+ dependencies. This fixes compatability with Ruby 1.9.3 where
153
+ rubygems is always loaded.
154
+
155
+ * Fixed compatability with Ruby 2.0.0: Temp-path alias in binary
156
+ changed to be valid UTF-8 character.
157
+
158
+ * README.txt updated related to --no-dep-run (karhatsu).
159
+
160
+ * Fixes for Bundler handling (DavidMikeSimon).
161
+
162
+ === 1.3.0
163
+
164
+ * Fixed some additional corner cases with absolute and relative
165
+ require & load paths. Extended test suite to cover a lot more
166
+ cases.
167
+
168
+ * Now provides a meaningful exit status code (1 on error, 0 on
169
+ success). (DavidMikeSimon)
170
+
171
+ * New option to _not_ run the script to detect dependencies
172
+ (--no-dep-run). (DavidMikeSimon)
173
+
174
+ * Bundler support using the --gemfile option. (DavidMikeSimon)
175
+
176
+ * Debug mode support in the stub (--debug). Also --debug-extract to
177
+ keep extracted files from executable. (DavidMikeSimon)
178
+
179
+ * New gem behaviour yet again due to changes in Rubygems. See README
180
+ file.
181
+
182
+ === 1.2.0
183
+
184
+ * Ignore console events (Ctrl-C, Ctrl-Break). Ruby process handles
185
+ them anyway and exist, allowing the stub to clean up temporary
186
+ files.
187
+
188
+ * Temporary memory used for decompression is now freed before the ruby
189
+ interpreter is launched by the stub.
190
+
191
+ * Progress dialog is no longer displayed when removing temporary
192
+ files.
193
+
194
+ * Now includes most files from any require'd Rubygem (Now works with
195
+ mime-types, oledb and other gems that load additional data files
196
+ from the Gem installation). Some files are still ignored
197
+ (e.g. Readme's). Use "--no-gem-filter" to make Ocra unconditionally
198
+ include all files listed in the Gem specification (Thanks to Jorge
199
+ L. Cangas for patch & ideas).
200
+
201
+ * NameErrors are now rescued when attempting to load autoloadable
202
+ constants. Hopefully resolves issues with ActiveRecord [#28488].
203
+
204
+ * Now works if the script changes environment or working directory
205
+ while running.
206
+
207
+ * Fixed a regression in 1.1.4 when resource files are specified;
208
+ directory layout would not be maintained, e.g. when running "ocra
209
+ bin/script share/data.dat".
210
+
211
+ * Added support for passing arguments to script. Specify argument to
212
+ your script after a "--" marker. Arguments will be passed both at
213
+ compile time and run time. (#27815)
214
+
215
+ * Now works if the source files are located beneath Ruby's
216
+ exec_prefix. (#28505)
217
+
218
+ === 1.1.4
219
+
220
+ * The tempdir marker is now pretty-printed as "<tempdir>" in the
221
+ output.
222
+
223
+ * Fixed various issues with path and filenames being handled case
224
+ sensitive.
225
+
226
+ * Now uses config settings for Ruby executable names (should now also
227
+ work with ruby installations built with --program-suffix).
228
+
229
+ * Supported invoking ocra with an absolute path to the script. Will
230
+ assume that the script is in the root of the source hierachy.
231
+
232
+ === 1.1.3
233
+
234
+ * Use Win32API (provided with Ruby) instead of win32-api (gem).
235
+
236
+ * No longer sets GEM_HOME (which would override the default gem
237
+ path). Instead sets GEM_PATH. Resolves issues with gems not loading
238
+ on Ruby 1.9.
239
+
240
+ === 1.1.2
241
+
242
+ * Warnings can be disabled using --no-warnings.
243
+
244
+ * Fixed not .exe being generated when script calls 'exit'.
245
+
246
+ * Path to the generated executable is now avilable to the running
247
+ script in the OCRA_EXECUTABLE environment variable.
248
+
249
+ * Directories on the command line will now be created.
250
+
251
+ * Supports path globs, fx. "ocra script.rb assets/**/*.png". (See
252
+ documentation for Ruby's Dir class).
253
+
254
+ * Fixed issue with spaces in temporary path (TMP environment).
255
+
256
+ * Improved path comparison to ignore case (this is Windows after all)
257
+ and be a bit more robust.
258
+
259
+ * Added support for RubyGems installed in GEM_HOME (or other part
260
+ handled by RubyGems). If not installed in the Ruby hierarchy, they
261
+ will now be installed in a directory named 'gemhome' under the
262
+ temporary directory.
263
+
264
+ === 1.1.1
265
+
266
+ * Fixed duplicate entries in the RUBYLIB environment variable.
267
+
268
+ * Another slight fix for relative load paths.
269
+
270
+ * RUBYOPT is now set to the value it had when OCRA was invoked.
271
+
272
+ === 1.1.0
273
+
274
+ * Added an icon to the executable. Can be replaced from a .ico file
275
+ using the --icon <ico> option.
276
+
277
+ * Improved handling of load paths added either from the command line
278
+ (ruby -I), RUBYLIB environment variable or during the script (by
279
+ modifying $: or $LOAD_PATH).
280
+
281
+ * Now automatically detects loaded DLLs through Win32::API. Disable
282
+ with --no-autodll.
283
+
284
+ === 1.0.3 / 2009-05-25
285
+
286
+ * Fixed invokation of executables with spaces in path names (#25966).
287
+
288
+ * Fixed inverted handling of --windows & --console (#25974)
289
+
290
+ * Fixed installation issue with RubyGems (missing "lib")
291
+
292
+ === 1.0.2 / 2009-05-10
293
+
294
+ * Added stubw.exe to gem (was missing 1.0.1)
295
+
296
+ === 1.0.1 / 2009-05-05
297
+
298
+ * Added stub with windows runtime for windowed applications
299
+ (e.g. wxRuby) and fixed issue where OCRA would use ruby.exe instead
300
+ of rubyw.exe for such programs. [#25774]
301
+
302
+ === 1.0.0 / 2009-04-05
303
+
304
+ * 1 major enhancement
305
+
306
+ * Birthday!
data/LICENSE.txt ADDED
@@ -0,0 +1,23 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2009-2020 Lars Christensen
4
+ Copyright (c) 2020-2025 The OCRAN Committers Team
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining
7
+ a copy of this software and associated documentation files (the
8
+ 'Software'), to deal in the Software without restriction, including
9
+ without limitation the rights to use, copy, modify, merge, publish,
10
+ distribute, sublicense, and/or sell copies of the Software, and to
11
+ permit persons to whom the Software is furnished to do so, subject to
12
+ the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.