forked from sillsdev/flashgrab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCopyFilesToAddons.bat
16 lines (13 loc) · 973 Bytes
/
CopyFilesToAddons.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
ECHO OFF
REM A Windows 'build' script. Run this after editing the addon's files. Then restart Anki.
REM Don't make edits over there in addons directly, as VCS won't see them, and an Anki or addon upgrade
REM might destroy them.
ECHO ON
REM copy all modified (D) files and folders (even E, empty ones), and overwrite (Y) without prompting
REM (Like Anki's own deployment, this does NOT remove any files. The simplest way to do so manually here is to delete the addons folder, then re-run.)
xcopy /D /E /Y /exclude:ExcludedFilesWindows.txt xml\*.* %USERPROFILE%\documents\Anki\addons\xml\
xcopy /D /E /Y /exclude:ExcludedFilesWindows.txt xpath\*.* %USERPROFILE%\documents\Anki\addons\xpath\
xcopy /D /E /Y /exclude:ExcludedFilesWindows.txt distutils\*.* %USERPROFILE%\documents\Anki\addons\distutils\
xcopy /D /E /Y /exclude:ExcludedFilesWindows.txt syncxml\*.* %USERPROFILE%\documents\Anki\addons\syncxml\
xcopy /D /Y syncx.py %USERPROFILE%\documents\Anki\addons\
PAUSE