Allow flashing applets without parameters

This commit is contained in:
Manuel Thalmann 2023-11-06 19:17:07 +01:00
parent 88c978e898
commit 2a785ebb16

View file

@ -2,4 +2,9 @@ CALL %~dp0setup.cmd
CALL %~dp0compile.cmd
:: "-f" forces overwriting old versions of the package
gp --install %~dp0..\%PACKAGE%\javacard\%PACKAGE%.cap --params %PARAMS% -f
IF [%PARAMS%]==[] (
gp -f --install %~dp0..\%PACKAGE%\javacard\%PACKAGE%.cap
) ELSE (
gp -f --install %~dp0..\%PACKAGE%\javacard\%PACKAGE%.cap --params %PARAMS%
)