mirror of
https://github.com/ijprest/keyboard-layout-editor.git
synced 2026-04-07 00:31:08 -07:00
Tweaked deploy script to allow me to deploy a single file easily
This commit is contained in:
parent
e48a31e318
commit
ebc13ea0d2
1 changed files with 9 additions and 5 deletions
14
deploy.bat
14
deploy.bat
|
|
@ -2,10 +2,14 @@
|
|||
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
|
||||
set PARMS=
|
||||
if "%1"=="" SET PARMS=--dryrun
|
||||
for %%Q IN (css js fonts samples bg) DO (
|
||||
aws s3 sync .\%%Q s3://www.keyboard-layout-editor.com/%%Q --acl public-read %PARMS%
|
||||
)
|
||||
for %%Q IN (kb.html oauth.html kb.js render.js serial.js extensions.js *.md *.json favicon.ico) DO (
|
||||
aws s3 cp .\%%Q s3://www.keyboard-layout-editor.com/%%Q --acl public-read %PARMS%
|
||||
if "%1"=="*" (
|
||||
for %%Q IN (css js fonts samples bg) DO (
|
||||
aws s3 sync .\%%Q s3://www.keyboard-layout-editor.com/%%Q --acl public-read %PARMS%
|
||||
)
|
||||
for %%Q IN (kb.html oauth.html kb.js render.js serial.js extensions.js *.md *.json favicon.ico) DO (
|
||||
aws s3 cp .\%%Q s3://www.keyboard-layout-editor.com/%%Q --acl public-read %PARMS%
|
||||
)
|
||||
) else (
|
||||
aws s3 cp %~1 s3://www.keyboard-layout-editor.com/%~1 --acl public-read %PARMS%
|
||||
)
|
||||
goto :EOF
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue