ci: fix a few relative paths (#10813)

* ci: fix a few relative paths

* Update .changes/config.json

---------

Co-authored-by: Lucas Fernandes Nogueira <lucas@tauri.app>
This commit is contained in:
Amr Bashir 2024-08-28 19:27:33 +03:00 committed by GitHub
parent ebfe17e264
commit d14a2a55f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 6 additions and 8 deletions

View File

@ -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": {

View File

@ -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:

View File

@ -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.
*/
@ -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
@ -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`
}

View File

@ -30,6 +30,7 @@ members = [
# examples
"examples/file-associations/src-tauri",
"examples/api/src-tauri",
"examples/api/src-tauri/tauri-plugin-sample",
]
resolver = "2"