Skip to content

Commit 722a8b1

Browse files
committedJan 6, 2025
🔧 update version
1 parent 43d9fff commit 722a8b1

File tree

2 files changed

+74
-66
lines changed

2 files changed

+74
-66
lines changed
 

‎dist/cli.js

+12-4
Original file line numberDiff line numberDiff line change
@@ -728,13 +728,21 @@ class LinuxBuilder extends BaseBuilder {
728728
super(options);
729729
}
730730
getFileName() {
731-
const { name } = this.options;
732-
const arch = process.arch === 'x64' ? 'amd64' : process.arch;
733-
return `${name}_${tauriConfig.version}_${arch}`;
731+
const { name, targets } = this.options;
732+
const version = tauriConfig.version;
733+
let arch = process.arch === 'x64' ? 'amd64' : process.arch;
734+
if (arch === 'arm64' && (targets === 'rpm' || targets === 'appimage')) {
735+
arch = 'aarch64';
736+
}
737+
// The RPM format uses different separators and version number formats
738+
if (targets === 'rpm') {
739+
return `${name}-${version}-1.${arch}`;
740+
}
741+
return `${name}_${version}_${arch}`;
734742
}
735743
// Customize it, considering that there are all targets.
736744
async build(url) {
737-
const targetTypes = ['deb', 'appimage'];
745+
const targetTypes = ['deb', 'appimage', 'rpm'];
738746
for (const target of targetTypes) {
739747
if (this.options.targets === target || this.options.targets === 'all') {
740748
await this.buildAndCopy(url, target);

‎src-tauri/Cargo.lock

+62-62
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.