Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
diogomatsubara committed Jun 13, 2024
1 parent a68ec7c commit d758354
Show file tree
Hide file tree
Showing 10 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions dist/build-crates-debian-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127508,7 +127508,7 @@ 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}-stable \
--deb-version ${version} \
--variant ${variant}`, {
cwd: path,
});
Expand All @@ -127518,7 +127518,7 @@ 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}-stable`, {
--deb-version ${version}`, {
cwd: path,
});
}
Expand Down
4 changes: 2 additions & 2 deletions dist/build-crates-standalone-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127493,7 +127493,7 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}-stable \
--deb-version ${version} \
--variant ${variant}`, {
cwd: path,
});
Expand All @@ -127503,7 +127503,7 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}-stable`, {
--deb-version ${version}`, {
cwd: path,
});
}
Expand Down
4 changes: 2 additions & 2 deletions dist/bump-crates-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -81214,7 +81214,7 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}-stable \
--deb-version ${version} \
--variant ${variant}`, {
cwd: path,
});
Expand All @@ -81224,7 +81224,7 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}-stable`, {
--deb-version ${version}`, {
cwd: path,
});
}
Expand Down
4 changes: 2 additions & 2 deletions dist/publish-crates-cargo-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -81102,7 +81102,7 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}-stable \
--deb-version ${version} \
--variant ${variant}`, {
cwd: path,
});
Expand All @@ -81112,7 +81112,7 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}-stable`, {
--deb-version ${version}`, {
cwd: path,
});
}
Expand Down
8 changes: 4 additions & 4 deletions dist/publish-crates-debian-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127488,7 +127488,7 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}-stable \
--deb-version ${version} \
--variant ${variant}`, {
cwd: path,
});
Expand All @@ -127498,7 +127498,7 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}-stable`, {
--deb-version ${version}`, {
cwd: path,
});
}
Expand Down Expand Up @@ -127720,7 +127720,7 @@ async function main(input) {
if (_build_crates_debian__WEBPACK_IMPORTED_MODULE_7__/* .artifactRegExp.test */ .cx.test(result.name)) {
const { downloadPath } = await artifact.downloadArtifact(result.id);
const archive = path__WEBPACK_IMPORTED_MODULE_6___default().join(downloadPath, result.name);
(0,_command__WEBPACK_IMPORTED_MODULE_5__.sh)(`unzip ${archive} -d ${input.version}-stable`);
(0,_command__WEBPACK_IMPORTED_MODULE_5__.sh)(`unzip ${archive} -d ${input.version}`);
}
}
// repo is actually owner/repo so we have to split it here to get only the git repo name
Expand All @@ -127734,7 +127734,7 @@ async function main(input) {
});
(0,_command__WEBPACK_IMPORTED_MODULE_5__.sh)("sudo apt-get update");
(0,_command__WEBPACK_IMPORTED_MODULE_5__.sh)("sudo apt-get install -y dpkg-dev");
await fs_promises__WEBPACK_IMPORTED_MODULE_0__.writeFile(packagesPath, (0,_command__WEBPACK_IMPORTED_MODULE_5__.sh)(`dpkg-scanpackages --multiversion ${input.version}-stable`));
await fs_promises__WEBPACK_IMPORTED_MODULE_0__.writeFile(packagesPath, (0,_command__WEBPACK_IMPORTED_MODULE_5__.sh)(`dpkg-scanpackages --multiversion ${input.version}`));
// NOTE: An unzipped package index is necessary for apt-get to recognize the
// local repository created below
const packages = (0,_command__WEBPACK_IMPORTED_MODULE_5__.sh)(`cat .Packages-*`, { quiet: true });
Expand Down
4 changes: 2 additions & 2 deletions dist/publish-crates-eclipse-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127569,7 +127569,7 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}-stable \
--deb-version ${version} \
--variant ${variant}`, {
cwd: path,
});
Expand All @@ -127579,7 +127579,7 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}-stable`, {
--deb-version ${version}`, {
cwd: path,
});
}
Expand Down
4 changes: 2 additions & 2 deletions dist/publish-crates-github-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127569,7 +127569,7 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}-stable \
--deb-version ${version} \
--variant ${variant}`, {
cwd: path,
});
Expand All @@ -127579,7 +127579,7 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}-stable`, {
--deb-version ${version}`, {
cwd: path,
});
}
Expand Down
4 changes: 2 additions & 2 deletions dist/publish-crates-homebrew-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127473,7 +127473,7 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}-stable \
--deb-version ${version} \
--variant ${variant}`, {
cwd: path,
});
Expand All @@ -127483,7 +127483,7 @@ function buildDebian(path, target, version) {
sh(`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}-stable`, {
--deb-version ${version}`, {
cwd: path,
});
}
Expand Down
4 changes: 2 additions & 2 deletions src/cargo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ export function buildDebian(path: string, target: string, version: string) {
`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}-stable \
--deb-version ${version} \
--variant ${variant}`,
{
cwd: path,
Expand All @@ -347,7 +347,7 @@ export function buildDebian(path: string, target: string, version: string) {
`cargo deb --no-build --no-strip \
--target ${target} \
--package ${package_.name} \
--deb-version ${version}-stable`,
--deb-version ${version}`,
{
cwd: path,
},
Expand Down
4 changes: 2 additions & 2 deletions src/publish-crates-debian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export async function main(input: Input) {
if (artifactRegExp.test(result.name)) {
const { downloadPath } = await artifact.downloadArtifact(result.id);
const archive = path.join(downloadPath, result.name);
sh(`unzip ${archive} -d ${input.version}-stable`);
sh(`unzip ${archive} -d ${input.version}`);
}
}

Expand All @@ -85,7 +85,7 @@ export async function main(input: Input) {
sh("sudo apt-get update");
sh("sudo apt-get install -y dpkg-dev");

await fs.writeFile(packagesPath, sh(`dpkg-scanpackages --multiversion ${input.version}-stable`));
await fs.writeFile(packagesPath, sh(`dpkg-scanpackages --multiversion ${input.version}`));
// NOTE: An unzipped package index is necessary for apt-get to recognize the
// local repository created below
const packages = sh(`cat .Packages-*`, { quiet: true });
Expand Down

0 comments on commit d758354

Please sign in to comment.