Skip to content

Commit

Permalink
Discontinue ocransa (Ocran-stand-alone)
Browse files Browse the repository at this point in the history
The implementation of bin/ocran.rb has been split into multiple files, making it impossible to release a stand-alone version.
  • Loading branch information
shinokaro committed Jul 23, 2024
1 parent 3fea9bd commit 53be541
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 59 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
*.exe
*.gem
!/share/ocran/lzma.exe
bin/ocransa.rb
pkg
README.txt
ocransa-*.zip
*.tmp
1 change: 1 addition & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- Update Bundler from 2.4.13 to 2.5.10.
- Fixed issue where the gem.build_complete file was not included in the package due to an incorrect change.
- Changed error output from standard output to standard error (stderr).
- ocransa (Ocran-stand-alone) has been discontinued.

=== 1.3.15
- Support for Ruby 2.6 and above.
Expand Down
9 changes: 0 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@ Alternatively you can download the gem at either
http://rubygems.org/gems/ocran or
https://github.com/largo/ocran/releases/.

Stand-alone Version: Get ocransa.rb from
https://github.com/largo/ocran/releases/. Requires nothing but a
working Ruby installation on Windows.

## Synopsis

### Building an executable:
Expand Down Expand Up @@ -179,11 +175,6 @@ Executable options:
* Working Ruby installation.
* Ruby Installation with devkit from rubyinstaller (when working with the source code only)

### Stand-alone version

Get ocransa.rb from the github releases. Requires
nothing but a working Ruby installation on Windows. (currently not supported - open an issue if you need this)

## Technical details

OCRAN first runs the target script in order to detect any files that
Expand Down
48 changes: 0 additions & 48 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,60 +25,12 @@ file "share/ocran/edicon.exe" => :build_stub

task :test => :build_stub

task :standalone => ["exe/ocrasa.rb"]

standalone_zip = "exe/ocrasa-#{ENV["VERSION"]}.zip"

file standalone_zip => "exe/ocrasa.rb" do
chdir "exe" do
sh "zip", "ocransa-#{ENV["VERSION"]}.zip", "ocransa.rb"
end
end

task :release_standalone => standalone_zip do
load "bin/ocran"
#sh "rubyforge add_release ocran ocran-standalone #{Ocran::VERSION} #{standalone_zip}"
end

file "bin/ocrasa.rb" => ["bin/ocra", "share/ocran/stub.exe", "share/ocran/stubw.exe", "share/ocran/lzma.exe", "share/ocran/edicon.exe"] do
cp "bin/ocran", "bin/ocrasa.rb"
File.open("bin/ocrasa.rb", "a") do |f|
f.puts "__END__"

stub = File.open("share/ocran/stub.exe", "rb") { |g| g.read }
stub64 = [stub].pack("m")
f.puts stub64.size
f.puts stub64

stub = File.open("share/ocran/stubw.exe", "rb") { |g| g.read }
stub64 = [stub].pack("m")
f.puts stub64.size
f.puts stub64

lzma = File.open("share/ocran/lzma.exe", "rb") { |g| g.read }
lzma64 = [lzma].pack("m")
f.puts lzma64.size
f.puts lzma64

lzma = File.open("share/ocran/edicon.exe", "rb") { |g| g.read }
lzma64 = [lzma].pack("m")
f.puts lzma64.size
f.puts lzma64
end
end

task :clean do
rm_f Dir["{bin,samples}/*.exe"]
rm_f Dir["share/ocran/{stub,stubw,edicon}.exe"]
sh "ridk exec make -C src clean"
end

task :test_standalone => :standalone do
ENV["TESTED_OCRAN"] = "ocransa.rb"
system("rake test")
ENV["TESTED_OCRAN"] = nil
end

task :release_docs => :redocs do
sh "pscp -r doc/* [email protected]:/var/www/gforge-projects/ocran"
end
Expand Down

0 comments on commit 53be541

Please sign in to comment.