craft-native 0.0.499 → 0.0.500

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/dist/package.d.ts CHANGED
@@ -376,6 +376,28 @@ export declare function windowsExecutableName(name: string): string;
376
376
  * off, so nothing ever reported it.
377
377
  */
378
378
  export declare function candleArguments(architecture: 'x86' | 'x64' | 'arm64', wixobjPath: string, wxsPath: string): string[];
379
+ /**
380
+ * Helper: Create Linux RPM package
381
+ */
382
+ /**
383
+ * The spec an app's rpm is built from: one prebuilt executable, installed as
384
+ * it is.
385
+ *
386
+ * `Source0` names the executable, which is what `%{SOURCE0}` in `%install`
387
+ * refers to; without the tag the macro is not defined and the install step
388
+ * fails. The executable is a finished program, so nothing is stripped from it,
389
+ * no debug package is split off and no build-id links are made: a compiled
390
+ * app that carries its own data after the program (a Bun or Deno executable)
391
+ * stops working when strip rewrites it. With nothing required, the `Requires`
392
+ * line is left out, because an empty one is not valid.
393
+ */
394
+ export declare function rpmSpec(options: {
395
+ name: string;
396
+ version: string;
397
+ summary: string;
398
+ description: string;
399
+ requires?: string;
400
+ }): string;
379
401
  /**
380
402
  * Simple packaging function for quick use
381
403
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "craft-native",
3
- "version": "0.0.499",
3
+ "version": "0.0.500",
4
4
  "type": "module",
5
5
  "description": "Build desktop apps with web languages - TypeScript SDK for Craft",
6
6
  "author": "Chris Breuer <chris@stacksjs.org>",