Skip to content

Commit

Permalink
Fix compilation when target dir in not in sources dir
Browse files Browse the repository at this point in the history
  • Loading branch information
danpashin committed Jun 24, 2024
1 parent 288f2f0 commit e4df5e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion twackup-cli/Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,15 @@ command = "ldid"
args = ["-S", "${TWACKUP_FAT_BINARY}"]

[tasks.create-deb]
cwd = "${ARTIFACTS_OUTPUT_DIR}"
cwd = "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}"
command = "bundle"
args = [
"exec", "fpm",
"--input-type", "dir",
"--output-type", "deb",
"--force",
"--prefix", "${DEB_PREFIX}",
"--package", "${ARTIFACTS_OUTPUT_DIR}/${DEB_IDENTIFIER}_${CARGO_MAKE_CRATE_VERSION}_${DEB_ARCHITECTURE}.deb",
"--deb-no-changelog",
"--log", "warn",
"--name", "${DEB_IDENTIFIER}",
Expand Down
3 changes: 2 additions & 1 deletion twackup-gui/Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,15 @@ mv -v Twackup.app.dSYM "${DEST_DIR}"

[tasks.create-deb]
private = true
cwd = "${ARTIFACTS_OUTPUT_DIR}"
cwd = "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}"
command = "bundle"
args = [
"exec", "fpm",
"--input-type", "dir",
"--output-type", "deb",
"--force",
"--prefix", "${DEB_PREFIX}",
"--package", "${ARTIFACTS_OUTPUT_DIR}/${DEB_IDENTIFIER}_${CARGO_MAKE_CRATE_VERSION}_${DEB_ARCHITECTURE}.deb",
"--deb-no-changelog",
"--log", "warn",
"--name", "${DEB_IDENTIFIER}",
Expand Down
3 changes: 2 additions & 1 deletion twackup/Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,15 @@ command = "ldid"
args = ["-S", "${TWACKUP_FAT_DYLIB}"]

[tasks.create-deb]
cwd = "${ARTIFACTS_OUTPUT_DIR}"
cwd = "${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}"
command = "bundle"
args = [
"exec", "fpm",
"--input-type", "dir",
"--output-type", "deb",
"--force",
"--prefix", "${DEB_PREFIX}",
"--package", "${ARTIFACTS_OUTPUT_DIR}/${DEB_IDENTIFIER}_${CARGO_MAKE_CRATE_VERSION}_${DEB_ARCHITECTURE}.deb",
"--deb-no-changelog",
"--log", "warn",
"--name", "${DEB_IDENTIFIER}",
Expand Down

0 comments on commit e4df5e7

Please sign in to comment.