🔧 update version
This commit is contained in:
16
dist/cli.js
vendored
16
dist/cli.js
vendored
@@ -728,13 +728,21 @@ class LinuxBuilder extends BaseBuilder {
|
||||
super(options);
|
||||
}
|
||||
getFileName() {
|
||||
const { name } = this.options;
|
||||
const arch = process.arch === 'x64' ? 'amd64' : process.arch;
|
||||
return `${name}_${tauriConfig.version}_${arch}`;
|
||||
const { name, targets } = this.options;
|
||||
const version = tauriConfig.version;
|
||||
let arch = process.arch === 'x64' ? 'amd64' : process.arch;
|
||||
if (arch === 'arm64' && (targets === 'rpm' || targets === 'appimage')) {
|
||||
arch = 'aarch64';
|
||||
}
|
||||
// The RPM format uses different separators and version number formats
|
||||
if (targets === 'rpm') {
|
||||
return `${name}-${version}-1.${arch}`;
|
||||
}
|
||||
return `${name}_${version}_${arch}`;
|
||||
}
|
||||
// Customize it, considering that there are all targets.
|
||||
async build(url) {
|
||||
const targetTypes = ['deb', 'appimage'];
|
||||
const targetTypes = ['deb', 'appimage', 'rpm'];
|
||||
for (const target of targetTypes) {
|
||||
if (this.options.targets === target || this.options.targets === 'all') {
|
||||
await this.buildAndCopy(url, target);
|
||||
|
||||
Reference in New Issue
Block a user