2021-09-28 02:15:17 +03:00
|
|
|
{
|
|
|
|
"gitSiteUrl": "https://www.github.com/your-org/tauri-plugin-{{ plugin_name }}/",
|
|
|
|
"pkgManagers": {
|
|
|
|
"rust": {
|
|
|
|
"version": true,
|
2022-03-06 16:15:35 +03:00
|
|
|
"getPublishedVersion": "cargo search ${ pkg.pkg } --limit 1 | sed -nE 's/^[^\"]*\"//; s/\".*//1p' -",
|
2022-06-19 21:49:08 +03:00
|
|
|
"prepublish": [
|
|
|
|
"sudo apt-get update",
|
|
|
|
"sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0",
|
|
|
|
"cargo install cargo-audit",
|
|
|
|
{
|
|
|
|
"command": "cargo generate-lockfile",
|
|
|
|
"dryRunCommand": true,
|
|
|
|
"pipe": true
|
|
|
|
},
|
|
|
|
{
|
2022-08-23 18:04:28 +03:00
|
|
|
"command": "echo '<details>\n<summary><em><h4>Cargo Audit</h4></em></summary>\n\n```'",
|
2022-06-19 21:49:08 +03:00
|
|
|
"dryRunCommand": true,
|
|
|
|
"pipe": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "cargo audit ${ process.env.CARGO_AUDIT_OPTIONS || '' }",
|
|
|
|
"dryRunCommand": true,
|
|
|
|
"pipe": true
|
|
|
|
},
|
|
|
|
{
|
2022-08-23 18:04:28 +03:00
|
|
|
"command": "echo '```\n\n</details>\n'",
|
2022-06-19 21:49:08 +03:00
|
|
|
"dryRunCommand": true,
|
|
|
|
"pipe": true
|
|
|
|
}
|
|
|
|
],
|
2022-03-06 16:15:35 +03:00
|
|
|
"publish": [
|
|
|
|
{
|
2022-06-21 21:21:47 +03:00
|
|
|
"command": "cargo package --no-verify",
|
2022-03-06 16:15:35 +03:00
|
|
|
"dryRunCommand": true
|
|
|
|
},
|
|
|
|
{
|
2022-08-23 18:04:28 +03:00
|
|
|
"command": "echo '<details>\n<summary><em><h4>Cargo Publish</h4></em></summary>\n\n```'",
|
2022-03-06 16:15:35 +03:00
|
|
|
"dryRunCommand": true,
|
|
|
|
"pipe": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "cargo publish",
|
2022-06-21 21:21:47 +03:00
|
|
|
"dryRunCommand": "cargo publish --dry-run",
|
2022-03-06 16:15:35 +03:00
|
|
|
"pipe": true
|
|
|
|
},
|
|
|
|
{
|
2022-08-23 18:04:28 +03:00
|
|
|
"command": "echo '```\n\n</details>\n'",
|
2022-03-06 16:15:35 +03:00
|
|
|
"dryRunCommand": true,
|
|
|
|
"pipe": true
|
|
|
|
}
|
|
|
|
]
|
2021-10-03 14:22:29 +03:00
|
|
|
},
|
|
|
|
"javascript": {
|
|
|
|
"version": true,
|
2022-03-06 16:15:35 +03:00
|
|
|
"getPublishedVersion": "npm view ${ pkgFile.pkg.name } version",
|
|
|
|
"publish": [
|
|
|
|
{
|
2022-08-23 18:04:28 +03:00
|
|
|
"command": "echo '<details>\n<summary><em><h4>Yarn Publish</h4></em></summary>\n\n```'",
|
2022-03-06 16:15:35 +03:00
|
|
|
"dryRunCommand": true,
|
|
|
|
"pipe": true
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "yarn publish --access public --loglevel silly",
|
|
|
|
"dryRunCommand": "npm publish --dry-run --access public",
|
|
|
|
"pipe": true
|
|
|
|
},
|
|
|
|
{
|
2022-08-23 18:04:28 +03:00
|
|
|
"command": "echo '```\n\n</details>\n'",
|
2022-03-06 16:15:35 +03:00
|
|
|
"dryRunCommand": true,
|
|
|
|
"pipe": true
|
|
|
|
}
|
|
|
|
]
|
2021-09-28 02:15:17 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"packages": {
|
|
|
|
"tauri-plugin-{{ plugin_name }}": {
|
|
|
|
"path": ".",
|
2022-06-21 18:46:50 +03:00
|
|
|
"manager": "rust",
|
|
|
|
"releaseTag": "crate-v${ pkgFile.version }"
|
2021-10-03 14:22:29 +03:00
|
|
|
},
|
|
|
|
"tauri-plugin-{{ plugin_name }}-api": {
|
|
|
|
"path": ".",
|
|
|
|
"manager": "javascript",
|
2022-06-19 21:49:08 +03:00
|
|
|
"dependencies": [
|
|
|
|
"tauri-plugin-{{ plugin_name }}"
|
2022-06-21 18:46:50 +03:00
|
|
|
],
|
|
|
|
"releaseTag": "npm-v${ pkgFile.version }"
|
2021-09-28 02:15:17 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|