Skip to content

Commit

Permalink
fix: Do not set the deb-version manually
Browse files Browse the repository at this point in the history
Let cargo deb resolve the debian version for us.
Fix #152
  • Loading branch information
diogomatsubara committed Jun 6, 2024
1 parent 8d683a1 commit 6d50155
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 27 deletions.
4 changes: 1 addition & 3 deletions dist/build-crates-debian-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127508,7 +127508,6 @@ function buildDebian(path, target, version) {
(0,_command__WEBPACK_IMPORTED_MODULE_5__.sh)(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version} \
--variant ${variant}`, {
cwd: path,
});
Expand All @@ -127517,8 +127516,7 @@ function buildDebian(path, target, version) {
else {
(0,_command__WEBPACK_IMPORTED_MODULE_5__.sh)(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}`, {
--package ${package_.name}`, {
cwd: path,
});
}
Expand Down
4 changes: 1 addition & 3 deletions dist/build-crates-standalone-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127493,7 +127493,6 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version} \
--variant ${variant}`, {
cwd: path,
});
Expand All @@ -127502,8 +127501,7 @@ function buildDebian(path, target, version) {
else {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}`, {
--package ${package_.name}`, {
cwd: path,
});
}
Expand Down
4 changes: 1 addition & 3 deletions dist/bump-crates-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -81214,7 +81214,6 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version} \
--variant ${variant}`, {
cwd: path,
});
Expand All @@ -81223,8 +81222,7 @@ function buildDebian(path, target, version) {
else {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}`, {
--package ${package_.name}`, {
cwd: path,
});
}
Expand Down
4 changes: 1 addition & 3 deletions dist/publish-crates-cargo-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -81102,7 +81102,6 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version} \
--variant ${variant}`, {
cwd: path,
});
Expand All @@ -81111,8 +81110,7 @@ function buildDebian(path, target, version) {
else {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}`, {
--package ${package_.name}`, {
cwd: path,
});
}
Expand Down
4 changes: 1 addition & 3 deletions dist/publish-crates-debian-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127488,7 +127488,6 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version} \
--variant ${variant}`, {
cwd: path,
});
Expand All @@ -127497,8 +127496,7 @@ function buildDebian(path, target, version) {
else {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}`, {
--package ${package_.name}`, {
cwd: path,
});
}
Expand Down
4 changes: 1 addition & 3 deletions dist/publish-crates-eclipse-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127569,7 +127569,6 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version} \
--variant ${variant}`, {
cwd: path,
});
Expand All @@ -127578,8 +127577,7 @@ function buildDebian(path, target, version) {
else {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}`, {
--package ${package_.name}`, {
cwd: path,
});
}
Expand Down
4 changes: 1 addition & 3 deletions dist/publish-crates-github-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127569,7 +127569,6 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version} \
--variant ${variant}`, {
cwd: path,
});
Expand All @@ -127578,8 +127577,7 @@ function buildDebian(path, target, version) {
else {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}`, {
--package ${package_.name}`, {
cwd: path,
});
}
Expand Down
4 changes: 1 addition & 3 deletions dist/publish-crates-homebrew-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127473,7 +127473,6 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version} \
--variant ${variant}`, {
cwd: path,
});
Expand All @@ -127482,8 +127481,7 @@ function buildDebian(path, target, version) {
else {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}`, {
--package ${package_.name}`, {
cwd: path,
});
}
Expand Down
4 changes: 1 addition & 3 deletions src/cargo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,6 @@ export function buildDebian(path: string, target: string, version: string) {
`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version} \
--variant ${variant}`,
{
cwd: path,
Expand All @@ -346,8 +345,7 @@ export function buildDebian(path: string, target: string, version: string) {
sh(
`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}`,
--package ${package_.name}`,
{
cwd: path,
},
Expand Down

0 comments on commit 6d50155

Please sign in to comment.