feat: add _setup as alternative to -setup
This commit is contained in:
@@ -156,9 +156,10 @@ These inputs allow you to modify the GitHub release.
|
|||||||
- If you provide a `tagName` to an existing release, `releaseDraft` must be set to `true` if the existing release is a draft.
|
- If you provide a `tagName` to an existing release, `releaseDraft` must be set to `true` if the existing release is a draft.
|
||||||
- If you only want to build the app without having the action upload any assets, for example if you want to only use [`actions/upload-artifact`](https://github.com/actions/upload-artifact), simply omit `tagName`, `releaseName` and `releaseId`.
|
- If you only want to build the app without having the action upload any assets, for example if you want to only use [`actions/upload-artifact`](https://github.com/actions/upload-artifact), simply omit `tagName`, `releaseName` and `releaseId`.
|
||||||
- Only enable `uploadPlainBinary` if you are sure what you're doing since Tauri doesn't officially support a portable mode, especially on platforms other than Windows where standalone binaries for GUI applications basically do not exist.
|
- Only enable `uploadPlainBinary` if you are sure what you're doing since Tauri doesn't officially support a portable mode, especially on platforms other than Windows where standalone binaries for GUI applications basically do not exist.
|
||||||
- `assetNamePattern` offers a few variables that will be replaced automatically if encapsulated in `[]`. Currently available variables are: `[name]`, `[version]`, `[platform]`, `[arch]`, `[mode]`, `[setup]`, `[ext]`.
|
- `assetNamePattern` offers a few variables that will be replaced automatically if encapsulated in `[]`. Currently available variables are: `[name]`, `[version]`, `[platform]`, `[arch]`, `[mode]`, `[setup]`, `[_setup]`, `[ext]`.
|
||||||
- `[mode]`: `debug` or `release`, depending on `includeDebug` and `includeRelease`.
|
- `[mode]` will be replaced with `debug` or `release`, depending on `includeDebug` and `includeRelease`.
|
||||||
- `[setup]` will be replaced with `-setup` which can be used to differenciate between the NSIS installer and the binary from `uploadPlainBinary`. For all other bundle types it will be an empty string.
|
- `[setup]` will be replaced with `-setup` which can be used to differenciate between the NSIS installer and the binary from `uploadPlainBinary`. For all other bundle types it will be an empty string.
|
||||||
|
- `[_setup]` behaves like `[setup]` but with `_setup` instead of `-setup`.
|
||||||
|
|
||||||
## Partners
|
## Partners
|
||||||
|
|
||||||
|
|||||||
Vendored
+2
-1
@@ -53194,7 +53194,7 @@ function getAssetName(asset, pattern) {
|
|||||||
if (asset.name === 'latest.json') {
|
if (asset.name === 'latest.json') {
|
||||||
return 'latest.json';
|
return 'latest.json';
|
||||||
}
|
}
|
||||||
if (pattern && asset.name !== 'binary') {
|
if (pattern) {
|
||||||
return renderNamePattern(pattern, asset);
|
return renderNamePattern(pattern, asset);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@@ -53226,6 +53226,7 @@ function createArtifact({ path, name, debug, platform, arch, bundle, version, })
|
|||||||
ext,
|
ext,
|
||||||
version,
|
version,
|
||||||
setup: bundle == 'nsis' ? '-setup' : '',
|
setup: bundle == 'nsis' ? '-setup' : '',
|
||||||
|
_setup: bundle == 'nsis' ? '_setup' : '',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
function getPackageJson(root) {
|
function getPackageJson(root) {
|
||||||
|
|||||||
Vendored
+1
@@ -26,6 +26,7 @@ export interface Artifact {
|
|||||||
ext: string;
|
ext: string;
|
||||||
version: string;
|
version: string;
|
||||||
setup: '-setup' | '';
|
setup: '-setup' | '';
|
||||||
|
_setup: '_setup' | '';
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface BuildOptions {
|
export interface BuildOptions {
|
||||||
|
|||||||
+2
-1
@@ -92,7 +92,7 @@ export function getAssetName(asset: Artifact, pattern?: string) {
|
|||||||
return 'latest.json';
|
return 'latest.json';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pattern && asset.name !== 'binary') {
|
if (pattern) {
|
||||||
return renderNamePattern(
|
return renderNamePattern(
|
||||||
pattern,
|
pattern,
|
||||||
asset as unknown as Record<string, string>,
|
asset as unknown as Record<string, string>,
|
||||||
@@ -147,6 +147,7 @@ export function createArtifact({
|
|||||||
ext,
|
ext,
|
||||||
version,
|
version,
|
||||||
setup: bundle == 'nsis' ? '-setup' : '',
|
setup: bundle == 'nsis' ? '-setup' : '',
|
||||||
|
_setup: bundle == 'nsis' ? '_setup' : '',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user