ruby_everywhere 0.1.13 → 0.1.14
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/lib/everywhere/commands/build.rb +12 -6
- data/lib/everywhere/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 43abb21e2044de5630a87ca49d653368af5d84c6186ec993fd4c1b2a588e31c8
|
|
4
|
+
data.tar.gz: cfb169771be7b208b230c6c9d7b0a63f7ed53061724d0008d5551409309e315f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b5086b64a57d5f010bea583175eb954881370c2d9cb304243249645ccd324a900df7b2748037cf2950894722ea85b9c1ae3ddf71617676c42b5ddb5c619b74cc
|
|
7
|
+
data.tar.gz: e87e280008d30d90a5a85446191673bd7bb2ada124a68a6578068b5f5f078f455461993fddfb5975e606144b029bd49c3fe71379361ee38c3b002769f9af6c19
|
|
@@ -50,9 +50,13 @@ module Everywhere
|
|
|
50
50
|
return
|
|
51
51
|
end
|
|
52
52
|
|
|
53
|
-
framework = Framework.detect(
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
framework = Framework.detect(root_path)
|
|
54
|
+
# dist/ belongs to the APP, not to the shell's cwd: `every platform
|
|
55
|
+
# runner` invokes us with --root <snapshot> from its own working
|
|
56
|
+
# directory, and `every release` looks for the .app under <root>/dist.
|
|
57
|
+
# Resolving a relative default against Dir.pwd scattered the build
|
|
58
|
+
# products into the runner's checkout instead.
|
|
59
|
+
output_path = output ? File.expand_path(output) : File.join(root_path, "dist", File.basename(root_path))
|
|
56
60
|
entry_path = File.join(framework.root, entry)
|
|
57
61
|
|
|
58
62
|
unless File.exist?(entry_path)
|
|
@@ -62,19 +66,21 @@ module Everywhere
|
|
|
62
66
|
UI.step("#{UI.bold(framework.name)} app at #{framework.root}")
|
|
63
67
|
|
|
64
68
|
if skip_press
|
|
65
|
-
UI.die!("--skip-press given but #{
|
|
66
|
-
UI.step("reusing pressed binary #{
|
|
69
|
+
UI.die!("--skip-press given but #{rel(output_path, root_path)} doesn't exist") unless File.exist?(output_path)
|
|
70
|
+
UI.step("reusing pressed binary #{rel(output_path, root_path)}")
|
|
67
71
|
else
|
|
68
72
|
press!(framework, entry, ruby, output_path)
|
|
69
73
|
end
|
|
70
74
|
|
|
71
75
|
bundle_app(output_path, app_name, shell_dir, config, target: target) if RUBY_PLATFORM.include?("darwin")
|
|
72
76
|
|
|
73
|
-
UI.success("built #{
|
|
77
|
+
UI.success("built #{rel(output_path, root_path)} (#{(File.size(output_path) / 1024.0 / 1024.0).round}MB)")
|
|
74
78
|
end
|
|
75
79
|
|
|
76
80
|
private
|
|
77
81
|
|
|
82
|
+
def rel(path, root_path) = UI.short_path(path.sub("#{root_path}/", "").sub("#{Dir.pwd}/", ""))
|
|
83
|
+
|
|
78
84
|
# The precompile step runs against the HOST Ruby — unlike tebako press,
|
|
79
85
|
# which installs the app's gems itself inside the packaged Ruby. A fresh
|
|
80
86
|
# machine (a hosted build runner, a brand-new checkout) has Gemfile.lock
|
data/lib/everywhere/version.rb
CHANGED