craft-native 0.0.104 → 0.0.107

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
@@ -4,6 +4,8 @@
4
4
  * Enables users to create installers for their Craft applications
5
5
  * across all platforms (macOS, Windows, Linux)
6
6
  */
7
+ /** Runtime packages required by the default Linux DEB, including notify-send. */
8
+ export declare const DEFAULT_DEB_DEPENDENCIES: readonly ['libgtk-3-0', 'libwebkit2gtk-4.1-37', 'libnotify-bin'];
7
9
  export interface PackageConfig {
8
10
  /** Application name */
9
11
  name: string;
@@ -95,6 +97,12 @@ export interface PackageConfig {
95
97
  msi?: boolean;
96
98
  /** Create ZIP archive */
97
99
  zip?: boolean;
100
+ /** Files installed beside the executable (for example WebView2Loader.dll) */
101
+ additionalFiles?: string[];
102
+ /** Custom URI schemes registered by the MSI installer */
103
+ urlSchemes?: string[];
104
+ /** App page loaded when the MSI shortcut or a registered URI starts Craft. */
105
+ launchUrl?: string;
98
106
  /** Architecture encoded in MSI metadata (defaults to the native host) */
99
107
  architecture?: 'x86' | 'x64' | 'arm64';
100
108
  /** Code signing certificate */
@@ -106,13 +114,17 @@ export interface PackageConfig {
106
114
  linux?: {
107
115
  /** Create DEB package */
108
116
  deb?: boolean;
117
+ /** Custom URI schemes advertised by the DEB desktop entry */
118
+ urlSchemes?: string[];
119
+ /** App page loaded when the DEB desktop entry starts Craft. */
120
+ launchUrl?: string;
109
121
  /** Create RPM package */
110
122
  rpm?: boolean;
111
123
  /** Create AppImage */
112
124
  appImage?: boolean;
113
125
  /** Desktop categories */
114
126
  categories?: string[];
115
- /** Dependencies (Debian) */
127
+ /** Dependencies (Debian); replaces the defaults, including libnotify-bin */
116
128
  debDependencies?: string[];
117
129
  /** Dependencies (RPM) */
118
130
  rpmDependencies?: string[];
@@ -125,6 +137,9 @@ interface MSIOptions {
125
137
  outputPath: string;
126
138
  manufacturer: string;
127
139
  architecture: 'x86' | 'x64' | 'arm64';
140
+ additionalFiles?: string[];
141
+ urlSchemes?: string[];
142
+ launchUrl?: string;
128
143
  certificatePath?: string;
129
144
  certificatePassword?: string;
130
145
  }
@@ -164,6 +179,7 @@ export interface MacOSBundleMetadata {
164
179
  * dicts would only invent distinctions LaunchServices does not care about.
165
180
  */
166
181
  export declare function urlTypesEntry(bundleId: string, schemes: readonly string[]): string | null;
182
+ export declare function linuxDesktopEntry(name: string, binaryName: string, urlSchemes?: readonly string[], launchUrl?: string): string;
167
183
  /**
168
184
  * Render `Contents/Info.plist` for a macOS app bundle.
169
185
  *
@@ -247,8 +263,11 @@ export declare function pkgbuildArguments(opts: {
247
263
  outputPath: string;
248
264
  installerIdentity?: string;
249
265
  }): string[];
266
+ export declare const WINDOWS_NOTIFICATION_ID_FILE = "craft-notification-id.txt";
267
+ /** Shared by the MSI shortcut and the installed executable's toast bridge. */
268
+ export declare function windowsNotificationAppId(name: string, manufacturer: string): string;
250
269
  export declare function windowsArchitecture(architecture: string): 'x86' | 'x64' | 'arm64';
251
- export declare function renderWixSource(opts: Pick<MSIOptions, 'name' | 'version' | 'manufacturer' | 'architecture'>, sourceName: string): string;
270
+ export declare function renderWixSource(opts: Pick<MSIOptions, 'name' | 'version' | 'manufacturer' | 'architecture' | 'urlSchemes' | 'launchUrl'>, sourceName: string, additionalFileNames?: string[]): string;
252
271
  export declare function windowsExecutableName(name: string): string;
253
272
  /**
254
273
  * `candle.exe` arguments.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "craft-native",
3
- "version": "0.0.104",
3
+ "version": "0.0.107",
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>",