mirror of
https://github.com/silverqx/TinyORM.git
synced 2026-02-05 17:59:25 -06:00
tools added source and deploy pwsh scripts
This commit is contained in:
26
tools/qsdb-deploy.ps1.example
Normal file
26
tools/qsdb-deploy.ps1.example
Normal file
@@ -0,0 +1,26 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
Set-StrictMode -Version 3.0
|
||||
|
||||
$Script:BuildPath = '<your_path_here>\TinyORM\TinyORM-builds-qmake\' +
|
||||
'build-TinyORM-Desktop_Qt_6_6_1_MSVC2022_64bit-Release'
|
||||
|
||||
$Script:DestinationPath = '<your_path_here>\dotfiles\bin'
|
||||
$Script:TinyDriversPath = "${Script:BuildPath}\src\release\TinyDrivers0.dll"
|
||||
$Script:TinyMySqlPath = "${Script:BuildPath}\src\release\TinyMySql0.dll"
|
||||
|
||||
if (Test-Path $Script:TinyDriversPath) {
|
||||
Copy-Item -Path $Script:TinyDriversPath -Destination $Script:DestinationPath
|
||||
}
|
||||
|
||||
if (Test-Path $Script:TinyMySqlPath) {
|
||||
Copy-Item -Path $Script:TinyMySqlPath -Destination $Script:DestinationPath
|
||||
}
|
||||
|
||||
Copy-Item -Path `
|
||||
"${Script:BuildPath}\src\release\TinyOrm0.dll", `
|
||||
"${Script:BuildPath}\tests\testdata_tom\release\tom_testdata.exe", `
|
||||
"${Script:BuildPath}\examples\tom\release\tom.exe"`
|
||||
-Destination $Script:DestinationPath
|
||||
|
||||
Write-Host 'TinyORM was deployed successfully. 🥳' -ForegroundColor DarkGreen
|
||||
14
tools/std.ps1
Normal file
14
tools/std.ps1
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
Param(
|
||||
[Parameter(Position = 0, ValueFromPipeline, ValueFromPipelinebyPropertyName,
|
||||
HelpMessage = 'Specifies the TinyORM debug build folder to add.')]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string[]] $BuildPath = $($(Get-Location).Path)
|
||||
)
|
||||
|
||||
Set-StrictMode -Version 3.0
|
||||
|
||||
Add-FolderOnPath.ps1 -Path $BuildPath\src\debug,
|
||||
$BuildPath\examples\tom\debug,
|
||||
$BuildPath\tests\testdata_tom\debug
|
||||
10
tools/stdm6.ps1.example
Normal file
10
tools/stdm6.ps1.example
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
Set-StrictMode -Version 3.0
|
||||
|
||||
# Initialize build environment if it's not already there
|
||||
if (-not (Test-Path env:WindowsSDKLibVersion)) {
|
||||
. qtenv6.ps1
|
||||
}
|
||||
|
||||
std.ps1 -BuildPath '<your_path_here>\TinyORM\TinyORM-builds-qmake\build-TinyORM-Desktop_Qt_6_6_1_MSVC2022_64bit-Debug'
|
||||
10
tools/stpm6.ps1.example
Normal file
10
tools/stpm6.ps1.example
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
Set-StrictMode -Version 3.0
|
||||
|
||||
# Initialize build environment if it's not already there
|
||||
if (-not (Test-Path env:WindowsSDKLibVersion)) {
|
||||
. qtenv6.ps1
|
||||
}
|
||||
|
||||
str.ps1 -BuildPath '<your_path_here>\TinyORM\TinyORM-builds-qmake\build-TinyORM-Desktop_Qt_6_6_1_MSVC2022_64bit-Profile'
|
||||
14
tools/str.ps1
Normal file
14
tools/str.ps1
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
Param(
|
||||
[Parameter(Position = 0, ValueFromPipeline, ValueFromPipelinebyPropertyName,
|
||||
HelpMessage = 'Specifies the TinyORM release build folder to add.')]
|
||||
[ValidateNotNullOrEmpty()]
|
||||
[string[]] $BuildPath = $($(Get-Location).Path)
|
||||
)
|
||||
|
||||
Set-StrictMode -Version 3.0
|
||||
|
||||
Add-FolderOnPath.ps1 -Path $BuildPath\src\release,
|
||||
$BuildPath\examples\tom\release,
|
||||
$BuildPath\tests\testdata_tom\release
|
||||
10
tools/strm6.ps1.example
Normal file
10
tools/strm6.ps1.example
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env pwsh
|
||||
|
||||
Set-StrictMode -Version 3.0
|
||||
|
||||
# Initialize build environment if it's not already there
|
||||
if (-not (Test-Path env:WindowsSDKLibVersion)) {
|
||||
. qtenv6.ps1
|
||||
}
|
||||
|
||||
str.ps1 -BuildPath '<your_path_here>\TinyORM\TinyORM-builds-qmake\build-TinyORM-Desktop_Qt_6_6_1_MSVC2022_64bit-Release'
|
||||
Reference in New Issue
Block a user