@happy-creative/iroder 1.0.3 → 1.0.5
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.
- package/package.json +2 -2
- package/script/build.ts +13 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"name": "@happy-creative/iroder",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"iroder": "./bin/iroder"
|
|
35
35
|
},
|
|
36
36
|
"optionalDependencies": {
|
|
37
|
-
"@happy-creative/iroder-darwin-arm64": "1.0.
|
|
37
|
+
"@happy-creative/iroder-darwin-arm64": "1.0.4"
|
|
38
38
|
},
|
|
39
39
|
"randomField": "this-is-a-random-value-12345",
|
|
40
40
|
"exports": {
|
package/script/build.ts
CHANGED
|
@@ -238,6 +238,19 @@ for (const item of targets) {
|
|
|
238
238
|
},
|
|
239
239
|
})
|
|
240
240
|
|
|
241
|
+
// Fix macOS code signature (bun build produces empty signature data)
|
|
242
|
+
if (item.os === "darwin") {
|
|
243
|
+
const binaryPath = path.join(dir, "dist", name, "bin", "iroder")
|
|
244
|
+
try {
|
|
245
|
+
// Remove invalid signature and re-sign with ad-hoc signature
|
|
246
|
+
await $`codesign --remove-signature ${binaryPath}`
|
|
247
|
+
await $`codesign --force --sign - ${binaryPath}`
|
|
248
|
+
console.log(`Applied ad-hoc code signature for macOS`)
|
|
249
|
+
} catch (e) {
|
|
250
|
+
console.log(`Note: codesign not available or not needed for this build`)
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
241
254
|
// Smoke test: only run if binary is for current platform
|
|
242
255
|
if (!skipSmokeTest && item.os === process.platform && item.arch === process.arch && !item.abi) {
|
|
243
256
|
const binaryPath = `dist/${name}/bin/iroder`
|