mirror of https://github.com/tauri-apps/tauri
285 lines
7.9 KiB
JSON
285 lines
7.9 KiB
JSON
{
|
|
"gitSiteUrl": "https://www.github.com/tauri-apps/tauri/",
|
|
"timeout": 3600000,
|
|
"pkgManagers": {
|
|
"rust": {
|
|
"errorOnVersionRange": "1.0.0-rc.100 - 99.x || ^1.1.0-0 || ^2.0.0-0",
|
|
"version": true,
|
|
"getPublishedVersion": "cargo search ${ pkgFile.pkg.package.name } --limit 1 | sed -nE \"s/^[^\\\"]*\\\"//; s/\\\".*//1p\"",
|
|
"prepublish": [
|
|
"sudo apt-get update",
|
|
"sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf",
|
|
"cargo install cargo-audit --features=fix",
|
|
{
|
|
"command": "cargo generate-lockfile",
|
|
"dryRunCommand": true,
|
|
"runFromRoot": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "echo \"# Cargo Audit\"",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "echo '```'",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "cargo audit ${ process.env.CARGO_AUDIT_OPTIONS || '' }",
|
|
"dryRunCommand": true,
|
|
"runFromRoot": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "echo '```'",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
}
|
|
],
|
|
"publish": [
|
|
"sleep 15s",
|
|
{
|
|
"command": "cargo package --allow-dirty --no-verify",
|
|
"dryRunCommand": true
|
|
},
|
|
{
|
|
"command": "echo \"# Cargo Publish\"",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "echo '```'",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "cargo publish --no-verify",
|
|
"dryRunCommand": "cargo publish --no-verify --dry-run --allow-dirty",
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "echo '```'",
|
|
"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": {
|
|
"errorOnVersionRange": "1.0.0-rc.100 - 99.x || ^1.1.0-0 || ^2.0.0-0",
|
|
"version": true,
|
|
"getPublishedVersion": "npm view ${ pkgFile.pkg.name } version",
|
|
"prepublish": [
|
|
{
|
|
"command": "yarn",
|
|
"dryRunCommand": true
|
|
},
|
|
{
|
|
"command": "echo \"# Yarn Audit\n\"",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "echo '<details>\n<summary>click to view</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 \"# Yarn Package Publish\"",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "echo '```'",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "yarn publish --access public --loglevel silly",
|
|
"dryRunCommand": "npm publish --dry-run --access public",
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "echo '```'",
|
|
"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 \"# Yarn Audit\n\"",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "echo '<details>\n<summary>click to view</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 \"# Yarn Package Publish\"",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "echo '```'",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "yarn npm-publish",
|
|
"dryRunCommand": true,
|
|
"pipe": true
|
|
},
|
|
{
|
|
"command": "echo '```'",
|
|
"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"],
|
|
"postversion": "node ../../.scripts/covector/sync-prerelease.js ${ pkg.pkg } ${ release.type }"
|
|
},
|
|
"tauri-runtime-wry": {
|
|
"path": "./core/tauri-runtime-wry",
|
|
"manager": "rust",
|
|
"dependencies": ["tauri-utils", "tauri-runtime"],
|
|
"postversion": "node ../../.scripts/covector/sync-prerelease.js ${ pkg.pkg } ${ release.type }"
|
|
},
|
|
"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 }"
|
|
},
|
|
"tauri": {
|
|
"path": "./core/tauri",
|
|
"manager": "rust",
|
|
"dependencies": [
|
|
"tauri-macros",
|
|
"tauri-utils",
|
|
"tauri-runtime",
|
|
"tauri-runtime-wry"
|
|
],
|
|
"postversion": "node ../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }"
|
|
},
|
|
"cli.js": {
|
|
"path": "./tooling/cli/node",
|
|
"manager": "javascript",
|
|
"dependencies": ["cli.rs"],
|
|
"postversion": "node ../../../.scripts/covector/sync-cli-metadata.js ${ pkg.pkg } ${ release.type }",
|
|
"prepublish": [],
|
|
"publish": [],
|
|
"postpublish": []
|
|
},
|
|
"cli.rs": {
|
|
"path": "./tooling/cli",
|
|
"manager": "rust",
|
|
"dependencies": ["tauri-bundler", "tauri-utils"],
|
|
"postversion": "cargo check",
|
|
"assets": [
|
|
{
|
|
"path": "${ pkg.path }/target/package/tauri-cli-${ pkgFile.version }.crate",
|
|
"name": "${ pkg.pkg }-${ pkgFile.version }.crate"
|
|
}
|
|
]
|
|
},
|
|
"tauri-driver": {
|
|
"path": "./tooling/webdriver",
|
|
"manager": "rust",
|
|
"postversion": "node ../../.scripts/covector/sync-prerelease.js ${ pkg.pkg } ${ release.type }"
|
|
}
|
|
}
|
|
}
|