-
Notifications
You must be signed in to change notification settings - Fork 17
/
local_publish.ps1
21 lines (16 loc) · 1.05 KB
/
local_publish.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
$dest_folder = "C:\Program Files (x86)\Natlink\site-packages\natlink\"
$dest_pyd = "_natlink_core.pyd"
$dest_pdb = "_natlink_core.pdb"
$dest_pyd_file = $dest_folder+$dest_pyd
$dest_pdb_file = $dest_folder+$dest_pdb
$msg = "updates __init__.py and _natlink_core.pyi from _natlink_core_legacy.pyd/_natlink_core_legacy.pyd to " + $dest_folder + `
"\nMust be run from a powershell with administrative privileges. " ` +
"\nIf you installed natlink to a folder other than C:\Program Files (x86)\Natlink\ copy this to another name and tweak $dest_folder, just don't check it in" + `
"\nto git."
echo $msg
Copy-Item -Destination $dest_folder build\NatlinkSource\Debug\_natlink_core.pyd
Copy-Item -Destination $dest_folder build\NatlinkSource\Debug\_natlink_core.pdb
Copy-Item -Destination $dest_folder build\NatlinkSource\Debug\_natlink_core_legacy.pyd
Copy-Item -Destination $dest_folder build\NatlinkSource\Debug\_natlink_core_legacy.pdb
Copy-Item -Destination $dest_folder src\natlink\__init__.py
Copy-Item -Destination $dest_folder src\natlink\_natlink_core.pyi