Repository navigation
Expand file tree
/
Copy pathocran.gemspec
More file actions
45 lines (37 loc) · 2.13 KB
/
Copy pathocran.gemspec
File metadata and controls
45 lines (37 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# frozen_string_literal: true
require_relative "lib/ocran/version"
Gem::Specification.new do |spec|
spec.name = "ocran"
spec.version = Ocran::VERSION
spec.authors = ["Andi Idogawa", "shinokaro", "Lars Christensen"]
spec.email = ["web@idogawa.com"]
spec.licenses = ["MIT"]
spec.summary = "OCRAN (One-Click Ruby Application Next) packages Ruby applications for distribution on Windows, Linux, and macOS."
spec.description = "OCRAN (One-Click Ruby Application Next) packages Ruby applications for " \
"distribution on Windows, Linux, and macOS. It bundles your script, the Ruby interpreter, " \
"gems, and native libraries into a self-contained artifact that runs without Ruby installed " \
"on the target machine: a self-extracting executable (default), a directory (--output-dir), " \
"a zip archive (--output-zip), or a macOS .app bundle (--macosx-bundle). " \
"Fork of OCRA maintained for Ruby 3.3+; migrating code should replace OCRA_EXECUTABLE " \
"with OCRAN_EXECUTABLE."
spec.homepage = "https://github.com/largo/ocran"
spec.required_ruby_version = ">= 3.3.0"
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://github.com/largo/ocran"
spec.metadata["changelog_uri"] = "https://github.com/largo/ocran/blob/master/CHANGELOG.txt"
spec.metadata["bug_tracker_uri"] = "https://github.com/largo/ocran/issues"
spec.metadata["documentation_uri"] = "https://github.com/largo/ocran#readme"
# Each platform ships only its own compiled stub binary.
# gem install ocran automatically selects the right gem for the current platform.
spec.platform = Gem::Platform::CURRENT
spec.files = Dir.glob("{exe,lib,share}/**/*") +
# Stub C sources so the launcher stub can be rebuilt at
# packaging time from an installed gem (--cosmo / cosmocc).
Dir.glob("src/**/*.{c,h,rc,manifest,ico}") +
["src/Makefile"] +
%w[README.md LICENSE.txt CHANGELOG.txt]
spec.bindir = "exe"
spec.executables = Dir.glob("exe/*").map { |f| File.basename(f) }
spec.require_paths = ["lib"]
spec.add_dependency "fiddle", "~> 1.0"
end