18 lines
642 B
PowerShell
18 lines
642 B
PowerShell
$artemis_repo = "%%ARTEMIS_REPO%%"
|
|
$artemis_branch = "%%ARTEMIS_BRANCH%%"
|
|
|
|
$artemis_location = Join-Path $(Get-Location) "artemis"
|
|
|
|
python/python.exe scripts/update-artemis.py "$artemis_repo" "$artemis_branch"
|
|
|
|
Set-Location "$artemis_location"
|
|
Write-Output "[INFO] Updating dependencies..."
|
|
../python/python.exe -m pip install --no-warn-script-location -r requirements.txt
|
|
|
|
Write-Output "[INFO] Migrating databases..."
|
|
$mariadb = Start-Process -NoNewWindow -PassThru -WorkingDirectory ..\mariadb ..\mariadb\bin\mysqld.exe --console
|
|
../python/python.exe dbutils.py autoupgrade
|
|
Stop-Process $mariadb.Id
|
|
|
|
Write-Output "ARTEMiS update finished."
|