ocran 1.3.12 → 1.3.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/ocran +11 -0
- data/lib/ocran/version.rb +5 -0
- data/lib/ocran.rb +5 -2
- metadata +12 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b7de27881bd34052b90faa5618a30c4da84182ff53a5edc1adfc32db052e2aa1
|
4
|
+
data.tar.gz: 16f25058a7a72073ade7050625a66bc2d41044db1cb704ad540210dcce1791b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b389b0744a54767cb7ba5187bfa3ce645dc2c71ce25adb6ce85bec94a7afa01f01ed4e055dec6df68818f7718d0418bd4b1bca5a151343bb624ab8126488744
|
7
|
+
data.tar.gz: 35a2a1197eabcc3a28483101583729c8e905982153c028576a09a605a2e195b8b01949d2e90988e31cd0077a3fc96e469fb121a8e1d1744e8b28e597a3edf5b4
|
data/bin/ocran
CHANGED
@@ -121,6 +121,7 @@ module Ocran
|
|
121
121
|
def basename; Pathname.new(File.basename(@path)); end
|
122
122
|
def expand(dir = nil); Pathname.new(File.expand_path(@path, dir && Ocran.Pathname(dir))); end
|
123
123
|
def size; File.size(@path); end
|
124
|
+
def encode(e); to_posix.encode(e); end # called when creating an installer with innosetup
|
124
125
|
|
125
126
|
alias to_s to_posix
|
126
127
|
alias to_str to_posix
|
@@ -972,6 +973,11 @@ EOF
|
|
972
973
|
sb.createfile(path, target)
|
973
974
|
end
|
974
975
|
|
976
|
+
# Workaround: RubyInstaller cannot find the msys folder if ../msys64/usr/bin/msys-2.0.dll is not present (since RubyInstaller-2.4.1 rubyinstaller 2 issue 23)
|
977
|
+
# Add an empty file to /msys64/usr/bin/msys-2.0.dll if the dll was not required otherwise
|
978
|
+
require 'tempfile'
|
979
|
+
sb.createfile((Tempfile.new("msys-2.0.dll")).path.to_s, 'msys64/usr/bin/msys-2.0.dll') unless sb.files.keys.any? { |entry| entry.to_s.include?("msys-2.0.dll") }
|
980
|
+
|
975
981
|
# Set environment variable
|
976
982
|
sb.setenv("RUBYOPT", ENV["RUBYOPT"] || "")
|
977
983
|
sb.setenv("RUBYLIB", load_path.map { |path| path.to_native }.uniq.join(";"))
|
@@ -1082,6 +1088,8 @@ EOF
|
|
1082
1088
|
OP_ENABLE_DEBUG_MODE = 7
|
1083
1089
|
OP_CREATE_INST_DIRECTORY = 8
|
1084
1090
|
|
1091
|
+
attr_reader :files
|
1092
|
+
|
1085
1093
|
def initialize(path, windowed)
|
1086
1094
|
@paths = {}
|
1087
1095
|
@files = {}
|
@@ -1230,6 +1238,9 @@ EOF
|
|
1230
1238
|
end
|
1231
1239
|
end
|
1232
1240
|
|
1241
|
+
def hasFile?(src)
|
1242
|
+
end
|
1243
|
+
|
1233
1244
|
def createprocess(image, cmdline)
|
1234
1245
|
Ocran.verbose_msg "l #{showtempdir image} #{showtempdir cmdline}"
|
1235
1246
|
@of << [OP_CREATE_PROCESS, image.to_native, cmdline].pack("VZ*Z*")
|
data/lib/ocran.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocran
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andi Idogawa
|
@@ -9,12 +9,17 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2023-05-
|
12
|
+
date: 2023-05-17 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
|
-
description: OCRAN (One-Click Ruby Application Next) builds Windows executables from
|
15
|
-
Ruby source code. The executable is a self-extracting, self-running executable
|
16
|
-
contains the Ruby interpreter, your source code and any additionally needed
|
17
|
-
libraries or DLL
|
14
|
+
description: "OCRAN (One-Click Ruby Application Next) builds Windows executables from
|
15
|
+
Ruby source code. \n The executable is a self-extracting, self-running executable
|
16
|
+
that contains the Ruby interpreter, your source code and any additionally needed
|
17
|
+
ruby libraries or DLL.\n \n This is a fork of OCRA that is compatible with ruby
|
18
|
+
version after 2.6. \n Migration guide: make sure to write ocran instead of ocra
|
19
|
+
in your code. For instance: OCRAN_EXECUTABLE\n\n usage: \n ocra helloworld.rb\n
|
20
|
+
\ helloworld.exe\n\n See readme at https://github.com/largo/ocran\n Report problems
|
21
|
+
in the github issues. Contributions welcome.\n This gem contains executables. We
|
22
|
+
plan to build them on github actions for security.\n "
|
18
23
|
email:
|
19
24
|
- andi@idogawa.com
|
20
25
|
executables:
|
@@ -24,6 +29,7 @@ extra_rdoc_files: []
|
|
24
29
|
files:
|
25
30
|
- bin/ocran
|
26
31
|
- lib/ocran.rb
|
32
|
+
- lib/ocran/version.rb
|
27
33
|
- share/ocran/edicon.exe
|
28
34
|
- share/ocran/lzma.exe
|
29
35
|
- share/ocran/stub.exe
|