codeql/ql/scripts/create-extractor-pack.ps1

15 строки
641 B
PowerShell
Исходник Обычный вид История

2021-05-26 10:46:57 +03:00
cargo build --release
2021-10-20 15:16:50 +03:00
cargo run --release -p ql-generator -- --dbscheme ql/src/ql.dbscheme --library ql/src/codeql_ql/ast/internal/TreeSitter.qll
2021-05-26 10:46:57 +03:00
codeql query format -i ql\src\codeql_ql\ast\internal\TreeSitter.qll
if (Test-Path -Path extractor-pack) {
rm -Recurse -Force extractor-pack
}
2021-05-26 10:46:57 +03:00
mkdir extractor-pack | Out-Null
cp codeql-extractor.yml, ql\src\ql.dbscheme, ql\src\ql.dbscheme.stats extractor-pack
cp -Recurse tools extractor-pack
mkdir extractor-pack\tools\win64 | Out-Null
cp target\release\ql-extractor.exe extractor-pack\tools\win64\extractor.exe
cp target\release\ql-autobuilder.exe extractor-pack\tools\win64\autobuilder.exe