mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-09-11 16:08:21 +03:00
267 lines
7.6 KiB
JSON
267 lines
7.6 KiB
JSON
{
|
|
"gitSiteUrl": "https://www.github.com/tauri-apps/tauri/",
|
|
"timeout": 3600000,
|
|
"pkgManagers": {
|
|
"rust": {
|
|
"version": true,
|
|
"getPublishedVersion": "node ../../.scripts/covector/package-latest-version.js cargo ${ pkgFile.pkg.package.name } ${ pkgFile.pkg.package.version }",
|
|
"prepublish": [
|
|
"sudo apt-get update",
|
|
"sudo apt-get install -y webkit2gtk-4.1 libayatana-appindicator3-dev",
|
|
"cargo install cargo-audit --features=fix",
|
|
{
|
|
"command": "cargo generate-lockfile",
|
|
"dryRunCommand": true,
|
|
"runFromRoot": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "echo '<details>\n<summary><em><h4>Cargo Audit</h4></em></summary>\n\n```'",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "cargo audit ${ process.env.CARGO_AUDIT_OPTIONS || '' }",
|
|
"dryRunCommand": true,
|
|
"runFromRoot": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "echo '```\n\n</details>\n'",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
}
|
|
],
|
|
"publish": [
|
|
"sleep 15s",
|
|
{
|
|
"command": "cargo package --no-verify",
|
|
"dryRunCommand": true
|
|
},
|
|
{
|
|
"command": "echo '<details>\n<summary><em><h4>Cargo Publish</h4></em></summary>\n\n```'",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "cargo publish",
|
|
"dryRunCommand": "cargo publish --dry-run",
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "echo '```\n\n</details>\n'",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
}
|
|
],
|
|
"postpublish": [
|
|
"git tag ${ pkg.pkg }-v${ pkgFile.versionMajor } -f",
|
|
"git tag ${ pkg.pkg }-v${ pkgFile.versionMajor }.${ pkgFile.versionMinor } -f",
|
|
"git push --tags -f"
|
|
],
|
|
"assets": [
|
|
{
|
|
"path": "${ pkg.path }/target/package/${ pkg.pkg }-${ pkgFile.version }.crate",
|
|
"name": "${ pkg.pkg }-${ pkgFile.version }.crate"
|
|
}
|
|
]
|
|
},
|
|
"javascript": {
|
|
"version": true,
|
|
"getPublishedVersion": "node ../../.scripts/covector/package-latest-version.js npm ${ pkgFile.pkg.name } ${ pkgFile.pkg.version }",
|
|
"prepublish": [
|
|
{
|
|
"command": "yarn",
|
|
"dryRunCommand": true
|
|
},
|
|
{
|
|
"command": "echo '<details>\n<summary><em><h4>Yarn Audit</h4></em></summary>\n\n```'",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "yarn audit",
|
|
"dryRunCommand": true,
|
|
"runFromRoot": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "echo '```\n\n</details>\n'",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "npm pack",
|
|
"dryRunCommand": true
|
|
}
|
|
],
|
|
"publish": [
|
|
"sleep 15s",
|
|
{
|
|
"command": "echo '<details>\n<summary><em><h4>Yarn Publish</h4></em></summary>\n\n```'",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "yarn publish --access public --loglevel silly --tag next",
|
|
"dryRunCommand": "npm publish --dry-run --access public",
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "echo '```\n\n</details>\n'",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
}
|
|
],
|
|
"postpublish": [
|
|
"git tag ${ pkg.pkg }-v${ pkgFile.versionMajor } -f",
|
|
"git tag ${ pkg.pkg }-v${ pkgFile.versionMajor }.${ pkgFile.versionMinor } -f",
|
|
"git push --tags -f"
|
|
]
|
|
}
|
|
},
|
|
"packages": {
|
|
"api": {
|
|
"path": "./tooling/api",
|
|
"manager": "javascript",
|
|
"assets": [
|
|
{
|
|
"path": "./tooling/api/dist/tauri-apps-api-${ pkgFile.version }.tgz",
|
|
"name": "api-${ pkgFile.version }.tgz"
|
|
}
|
|
],
|
|
"prepublish": [
|
|
{
|
|
"command": "yarn",
|
|
"dryRunCommand": true
|
|
},
|
|
{
|
|
"command": "echo '<details>\n<summary><em><h4>Yarn Audit</h4></em></summary>\n\n```'",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "yarn audit",
|
|
"dryRunCommand": true,
|
|
"runFromRoot": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "echo '```\n\n</details>\n'",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "yarn npm-pack",
|
|
"dryRunCommand": true
|
|
}
|
|
],
|
|
"publish": [
|
|
{
|
|
"command": "echo '<details>\n<summary><em><h4>Yarn Publish</h4></em></summary>\n\n```'",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "yarn npm-publish",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "echo '```\n\n</details>\n'",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
}
|
|
]
|
|
},
|
|
"tauri-utils": {
|
|
"path": "./core/tauri-utils",
|
|
"manager": "rust"
|
|
},
|
|
"tauri-bundler": {
|
|
"path": "./tooling/bundler",
|
|
"manager": "rust",
|
|
"dependencies": ["tauri-utils"]
|
|
},
|
|
"tauri-runtime": {
|
|
"path": "./core/tauri-runtime",
|
|
"manager": "rust",
|
|
"dependencies": ["tauri-utils"]
|
|
},
|
|
"tauri-runtime-wry": {
|
|
"path": "./core/tauri-runtime-wry",
|
|
"manager": "rust",
|
|
"dependencies": ["tauri-utils", "tauri-runtime"]
|
|
},
|
|
"tauri-codegen": {
|
|
"path": "./core/tauri-codegen",
|
|
"manager": "rust",
|
|
"dependencies": ["tauri-utils"]
|
|
},
|
|
"tauri-macros": {
|
|
"path": "./core/tauri-macros",
|
|
"manager": "rust",
|
|
"dependencies": ["tauri-codegen", "tauri-utils"]
|
|
},
|
|
"tauri-build": {
|
|
"path": "./core/tauri-build",
|
|
"manager": "rust",
|
|
"dependencies": ["tauri-codegen", "tauri-utils"],
|
|
"postversion": [
|
|
"node ../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }",
|
|
"cargo build --manifest-path ../tauri-config-schema/Cargo.toml"
|
|
],
|
|
"assets": [
|
|
{
|
|
"path": "./tooling/cli/schema.json",
|
|
"name": "schema.json"
|
|
}
|
|
]
|
|
},
|
|
"tauri": {
|
|
"path": "./core/tauri",
|
|
"manager": "rust",
|
|
"dependencies": [
|
|
"tauri-macros",
|
|
"tauri-utils",
|
|
"tauri-runtime",
|
|
"tauri-runtime-wry",
|
|
"tauri-build"
|
|
],
|
|
"postversion": "node ../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }"
|
|
},
|
|
"cli.js": {
|
|
"path": "./tooling/cli/node",
|
|
"manager": "javascript",
|
|
"getPublishedVersion": "node ../../../.scripts/covector/package-latest-version.js npm ${ pkgFile.pkg.name } ${ pkgFile.pkg.version }",
|
|
"dependencies": ["cli.rs"],
|
|
"postversion": [
|
|
"node ../../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }",
|
|
"cargo build --manifest-path ../../../core/tauri-config-schema/Cargo.toml"
|
|
],
|
|
"prepublish": [],
|
|
"publish": [],
|
|
"postpublish": []
|
|
},
|
|
"cli.rs": {
|
|
"path": "./tooling/cli",
|
|
"manager": "rust",
|
|
"dependencies": ["tauri-bundler", "tauri-utils"],
|
|
"postversion": [
|
|
"cargo check",
|
|
"cargo build --manifest-path ../../core/tauri-config-schema/Cargo.toml"
|
|
],
|
|
"assets": [
|
|
{
|
|
"path": "${ pkg.path }/target/package/tauri-cli-${ pkgFile.version }.crate",
|
|
"name": "${ pkg.pkg }-${ pkgFile.version }.crate"
|
|
}
|
|
]
|
|
},
|
|
"tauri-driver": {
|
|
"path": "./tooling/webdriver",
|
|
"manager": "rust"
|
|
}
|
|
}
|
|
}
|