Skip to content

Commit

Permalink
ci: fix a few relative paths (#10813)
Browse files Browse the repository at this point in the history
* ci: fix a few relative paths

* Update .changes/config.json

---------

Co-authored-by: Lucas Fernandes Nogueira <[email protected]>
  • Loading branch information
amrbashir and lucasfernog authored Aug 28, 2024
1 parent ebfe17e commit d14a2a5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .changes/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
"dependencies": ["tauri-bundler", "tauri-utils", "tauri-macos-sign"],
"postversion": [
"cargo check",
"cargo build --manifest-path ../../crates/tauri-schema-generator/Cargo.toml"
"cargo build --manifest-path ../tauri-schema-generator/Cargo.toml"
]
},
"tauri-driver": {
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-cli-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ jobs:
# pnpm build:release
# strip -x *.node
# rm -rf node_modules
# rm -rf ../target
# rm -rf ../../target
# - name: Upload artifact
# uses: actions/upload-artifact@v3
# with:
Expand Down
9 changes: 3 additions & 6 deletions .scripts/ci/sync-cli-metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/*
This script is solely intended to be run as part of the `covector version` step to
keep the `../crates/tauri-cli/metadata.json` up to date with other version bumps. Long term
keep the `../../crates/tauri-cli/metadata-v2.json` up to date with other version bumps. Long term
we should look to find a more "rusty way" to import / "pin" a version value in our tauri-cli
rust binaries.
*/
Expand All @@ -15,10 +15,7 @@ const { readFileSync, writeFileSync } = require('fs')
const { resolve } = require('path')

const packageNickname = process.argv[2]
const filePath =
packageNickname === '@tauri-apps/cli'
? `../../../crates/tauri-cli/metadata-v2.json`
: `../../crates/tauri-cli/metadata-v2.json`
const filePath = resolve(__dirname, '../../crates/tauri-cli/metadata-v2.json')
const bump = process.argv[3]
let index = null

Expand Down Expand Up @@ -52,7 +49,7 @@ const inc = (version) => {
}
if (bump === 'premajor') {
const pre = JSON.parse(
readFileSync(resolve(filePath, '../../../.changes/pre.json'), 'utf-8')
readFileSync(resolve(__dirname, '../../.changes/pre.json'), 'utf-8')
)
return `${v.join('.')}-${pre.tag}.0`
}
Expand Down
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ members = [
# examples
"examples/file-associations/src-tauri",
"examples/api/src-tauri",
"examples/api/src-tauri/tauri-plugin-sample",
]
resolver = "2"

Expand Down

0 comments on commit d14a2a5

Please sign in to comment.