mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-11-29 13:03:09 +03:00
83b3fcb8c8
* add simple bat and ps1 setup scripts * add proptest for property testing * add comments. * add basic bash script (needs improvement) * add basic quickcheck tests. * add more comments. * add simple is_dir test. * add support for windows commands; remove returns * remove print statement * change prefixes to ch and add script * fix prefixes. * move qc script to .scripts folder. * fix bash path. * move scripts to root and add if checks. * update bash script with more logic to check dirs. * update bash script with more logic to check dirs. * clean up and verify * update gitignore for .vscode folder outside root * add docs * update docs * format scripts
18 lines
644 B
PowerShell
18 lines
644 B
PowerShell
Write-Output "Setting up enviromental Variables"
|
|
# setup relative paths
|
|
$dist_path = "tauri\test\fixture\dist"
|
|
$src_path = "tauri\test\fixture\src-tauri"
|
|
|
|
# check to see if path variables are directories
|
|
if ((Test-Path $dist_path -PathType Any) -Or (Test-Path $src_path -PathType Any)) {
|
|
# convert relative paths to absolute paths.
|
|
# put these absolute paths in enviromental variables
|
|
$env:TAURI_DIST_DIR = Resolve-Path $dist_path
|
|
$env:TAURI_DIR = Resolve-Path $src_path
|
|
Write-Output "Variables set, ready to work!"
|
|
|
|
}
|
|
else {
|
|
Write-Output "Variables are not setup properly. Please run from Tauri Root directory"
|
|
}
|