native-packages 0.14.2 → 0.14.3
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/CONTRIBUTING.md +1 -1
- data/docs/_guides/getting-started.md +2 -2
- data/docs/_guides/github-actions.md +4 -4
- data/docs/_guides/native-recipes.md +1 -1
- data/docs/_guides/release-signing.md +3 -3
- data/docs/_guides/windows-signing.md +1 -1
- data/docs/_reference/commands.md +1 -1
- data/docs/_reference/configuration.md +1 -1
- data/docs/_reference/troubleshooting.md +2 -2
- data/examples/native-packages-all-formats.yaml +1 -1
- data/examples/native-packages-linux-distribution.yaml +1 -1
- data/examples/native-packages.yaml +1 -1
- data/lib/native_packages/pacman_repository.rb +7 -1
- data/lib/native_packages/support.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: 7aa5dc57d2273dc7856440d50b5532765830e2443b86b2755c19c7d259341c3a
|
|
4
|
+
data.tar.gz: dbf4cdc5b405f2ba86065a79d249ea66fba73fba2c8d07c4597cc66fcad52c20
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f18d3904705ea2234bccda5f4d5b761d03595f14da39408af4e20fcdd6c6e822762b8b82f84d40e1b4d96234903505ec20341967b16ad25842398173dfeacd69
|
|
7
|
+
data.tar.gz: f6469a96d351728a8e17229fb016179a079d01cea4bbc7b5c4eebb662b96fccc9f888efb1d9a4425eee731f2b58b8e589f0333081d25ca46744149a053bd1b8f
|
data/CONTRIBUTING.md
CHANGED
|
@@ -18,7 +18,7 @@ To check the packaged gem and standalone command:
|
|
|
18
18
|
|
|
19
19
|
```sh
|
|
20
20
|
gem build native-packages.gemspec
|
|
21
|
-
ruby test/gem_install.rb native-packages-0.14.
|
|
21
|
+
ruby test/gem_install.rb native-packages-0.14.3.gem
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
See [Releasing the gem](docs/releasing.md) for publication and
|
|
@@ -19,7 +19,7 @@ own compiled executable, or build the tiny example below.
|
|
|
19
19
|
You need Ruby 3.2 or later. Install the version used by these guides:
|
|
20
20
|
|
|
21
21
|
```sh
|
|
22
|
-
gem install native-packages --version 0.14.
|
|
22
|
+
gem install native-packages --version 0.14.3
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
For Linux packages, install **nFPM 2.47.0**, the helper native-packages uses to
|
|
@@ -81,7 +81,7 @@ Open the generated `native-packages.yaml` and replace its contents with:
|
|
|
81
81
|
```yaml
|
|
82
82
|
schema: 1
|
|
83
83
|
tool:
|
|
84
|
-
version: '0.14.
|
|
84
|
+
version: '0.14.3'
|
|
85
85
|
nfpm: '2.47.0'
|
|
86
86
|
|
|
87
87
|
nfpm:
|
|
@@ -24,7 +24,7 @@ packaging:
|
|
|
24
24
|
needs: release
|
|
25
25
|
permissions:
|
|
26
26
|
contents: write
|
|
27
|
-
uses: crmne/native-packages/.github/workflows/package.yml@v0.14.
|
|
27
|
+
uses: crmne/native-packages/.github/workflows/package.yml@v0.14.3
|
|
28
28
|
with:
|
|
29
29
|
version: ${{ github.ref_name }}
|
|
30
30
|
publish: true
|
|
@@ -39,7 +39,7 @@ The configuration must include `release.repository` and a `release_asset`
|
|
|
39
39
|
for each selected target. See [Publishing a release](publishing.md).
|
|
40
40
|
|
|
41
41
|
Use the same native-packages release for the workflow and `tool.version`.
|
|
42
|
-
For an immutable workflow reference, replace `v0.14.
|
|
42
|
+
For an immutable workflow reference, replace `v0.14.3` with that release's
|
|
43
43
|
full commit SHA.
|
|
44
44
|
|
|
45
45
|
## Build without publishing
|
|
@@ -57,7 +57,7 @@ permissions:
|
|
|
57
57
|
contents: read
|
|
58
58
|
jobs:
|
|
59
59
|
packaging:
|
|
60
|
-
uses: crmne/native-packages/.github/workflows/package.yml@v0.14.
|
|
60
|
+
uses: crmne/native-packages/.github/workflows/package.yml@v0.14.3
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
Validation does not compile the app or check that future release inputs exist.
|
|
@@ -72,7 +72,7 @@ packaging:
|
|
|
72
72
|
needs: build
|
|
73
73
|
permissions:
|
|
74
74
|
contents: write
|
|
75
|
-
uses: crmne/native-packages/.github/workflows/package.yml@v0.14.
|
|
75
|
+
uses: crmne/native-packages/.github/workflows/package.yml@v0.14.3
|
|
76
76
|
with:
|
|
77
77
|
version: '1.2.3'
|
|
78
78
|
source-artifact: linux-binaries
|
|
@@ -67,7 +67,7 @@ Package publication's separate `packaging-checksums.txt` is also unchanged.
|
|
|
67
67
|
|
|
68
68
|
## Attest in the application's build job
|
|
69
69
|
|
|
70
|
-
The examples use `v0.14.
|
|
70
|
+
The examples use `v0.14.3` for readability. For release workflows, replace it
|
|
71
71
|
with that release's reviewed full commit SHA, not a mutable branch.
|
|
72
72
|
After producing the final package, before uploading it, add this step to the
|
|
73
73
|
job that built it:
|
|
@@ -79,7 +79,7 @@ permissions:
|
|
|
79
79
|
attestations: write
|
|
80
80
|
steps:
|
|
81
81
|
# Existing checkout, build, platform signing and packaging steps go here.
|
|
82
|
-
- uses: crmne/native-packages/.github/actions/attest@v0.14.
|
|
82
|
+
- uses: crmne/native-packages/.github/actions/attest@v0.14.3
|
|
83
83
|
with:
|
|
84
84
|
subject-path: dist/*.tar.gz
|
|
85
85
|
```
|
|
@@ -108,7 +108,7 @@ and install Ruby 3.2 or later with Ed25519-capable OpenSSL before the signing
|
|
|
108
108
|
step. Then call:
|
|
109
109
|
|
|
110
110
|
```yaml
|
|
111
|
-
- uses: crmne/native-packages/.github/actions/sign-release@v0.14.
|
|
111
|
+
- uses: crmne/native-packages/.github/actions/sign-release@v0.14.3
|
|
112
112
|
with:
|
|
113
113
|
directory: dist/release
|
|
114
114
|
public-key: assets/update-public-key.hex
|
|
@@ -152,7 +152,7 @@ jobs:
|
|
|
152
152
|
- uses: ruby/setup-ruby@v1
|
|
153
153
|
with:
|
|
154
154
|
ruby-version: '4.0'
|
|
155
|
-
- run: gem install native-packages --version 0.14.
|
|
155
|
+
- run: gem install native-packages --version 0.14.3 --no-document
|
|
156
156
|
- run: cargo build --locked --release --target x86_64-pc-windows-msvc
|
|
157
157
|
- name: Sign in to Azure for code signing
|
|
158
158
|
if: vars.AZURE_SIGNING_PROFILE != ''
|
data/docs/_reference/commands.md
CHANGED
|
@@ -224,7 +224,7 @@ If several gem versions are installed, RubyGems lets you select the one required
|
|
|
224
224
|
by the configuration:
|
|
225
225
|
|
|
226
226
|
```sh
|
|
227
|
-
native-packages _0.14.
|
|
227
|
+
native-packages _0.14.3_ build --version 1.2.3
|
|
228
228
|
```
|
|
229
229
|
|
|
230
230
|
Bundler also works if you prefer to manage the gem in a Gemfile.
|
|
@@ -28,7 +28,7 @@ expressions. Use the replacement values listed below.
|
|
|
28
28
|
| Field | Purpose |
|
|
29
29
|
| --- | --- |
|
|
30
30
|
| `schema` | Required. Set to `1`. |
|
|
31
|
-
| `tool.version` | Required. Exact native-packages version, such as `'0.14.
|
|
31
|
+
| `tool.version` | Required. Exact native-packages version, such as `'0.14.3'`. |
|
|
32
32
|
| `tool.nfpm` | Required. Set to `'2.47.0'`, including in native-only configurations. |
|
|
33
33
|
| `nfpm` | Shared package metadata and installed-file mappings, or a relative YAML filename. Requires `name`. |
|
|
34
34
|
| `targets` | Required. Named build targets; use `{}` for recipe-only projects. |
|
|
@@ -23,8 +23,8 @@ working on with `doctor --target ID` and `build --target ID --dry-run`.
|
|
|
23
23
|
Install and select the version named in the error:
|
|
24
24
|
|
|
25
25
|
```sh
|
|
26
|
-
gem install native-packages --version 0.14.
|
|
27
|
-
native-packages _0.14.
|
|
26
|
+
gem install native-packages --version 0.14.3
|
|
27
|
+
native-packages _0.14.3_ doctor
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
`tool.version` is an exact match. In CI, use the matching released reusable
|
|
@@ -124,7 +124,13 @@ module NativePackages
|
|
|
124
124
|
signature = Pathname.new("#{path}.sig")
|
|
125
125
|
signature.delete if signature.exist?
|
|
126
126
|
end
|
|
127
|
-
|
|
127
|
+
# pacman reads one version of each package from a database, the first
|
|
128
|
+
# it finds, so the databases list only the newest: the older files
|
|
129
|
+
# stay beside it for downgrades, as `keep` says.
|
|
130
|
+
newest = remaining.group_by { |_, details| details.first }.values.to_h do |versions|
|
|
131
|
+
versions.max { |left, right| self.class.compare(left.last[1], right.last[1]) }
|
|
132
|
+
end
|
|
133
|
+
newest.group_by { |path, _| path.dirname }.sort.each do |folder, rows|
|
|
128
134
|
write_databases(folder, rows.to_h, signing)
|
|
129
135
|
end
|
|
130
136
|
write(directory / "#{repository}.asc", signing.public_key(armor: true))
|