ruby_everywhere 0.1.6 → 0.1.7
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/release.rb +10 -0
- 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: e49675a00a9bbeda3f2e8e9df0dd625535de48ed2cf1dbe2efd6ce2bd6c6975d
|
|
4
|
+
data.tar.gz: 6ee2c5cf2063f6099473e51b8bd1b60a93c738c80136b605807dfd6d89095e2e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24efd93b6713e1d50497367a1c532e784284ff18003b5204adc5f99bf2ad9cc0d34c8ef1815539957a1b06e24ff7d64880966a83a43ea7cf40aa357d526456ca
|
|
7
|
+
data.tar.gz: e9820167a09013b4721c584738b2b480f6054dfcbb9fb2417d83ec07158e6359c05ba364a8d8e905b5e5b1a044f97e938917852ac5c4e68f368eda84198fa421
|
|
@@ -68,6 +68,7 @@ module Everywhere
|
|
|
68
68
|
# 3. Gather signing facts from the bundle itself, then emit the receipt.
|
|
69
69
|
artifact = "#{app_dir.sub(/\.app\z/, "")}.zip" # notarize.sh re-zips the stapled app
|
|
70
70
|
UI.die!("expected notarized zip #{artifact} not found") unless File.exist?(artifact)
|
|
71
|
+
artifact = dashify(artifact)
|
|
71
72
|
|
|
72
73
|
signing = gather_signing(app_dir, log)
|
|
73
74
|
receipt = Receipt.new(root: root_path, config: config, framework: framework, ruby: ruby,
|
|
@@ -87,6 +88,15 @@ module Everywhere
|
|
|
87
88
|
UI.die!("signing engine missing at #{NOTARIZE}") unless File.exist?(NOTARIZE)
|
|
88
89
|
end
|
|
89
90
|
|
|
91
|
+
# The distributable filename must be URL/CI-safe, so spaces become dashes
|
|
92
|
+
# ("My App.zip" → "My-App.zip"). Only the zip is renamed — the .app keeps
|
|
93
|
+
# its spaced display name for Finder/menu bar.
|
|
94
|
+
def dashify(zip)
|
|
95
|
+
dashed = File.join(File.dirname(zip), File.basename(zip).gsub(/\s+/, "-"))
|
|
96
|
+
File.rename(zip, dashed) unless dashed == zip
|
|
97
|
+
dashed
|
|
98
|
+
end
|
|
99
|
+
|
|
90
100
|
# A .env.release next to the app, then at the repo root above it.
|
|
91
101
|
def discover_env_file(root_path)
|
|
92
102
|
[ENV["ENV_FILE"], File.join(root_path, ".env.release"), File.join(root_path, "..", ".env.release")]
|
data/lib/everywhere/version.rb
CHANGED