mirror of
https://github.com/visualboyadvance-m/dependencies
synced 2025-10-05 23:52:39 +02:00
Getting winsparkle-static to work for us is going to be complicated, because it also initializes a wxWidgets app. For the time replace it with a binary release of winsparkle, we will package the dll as a resource. Signed-off-by: Rafael Kitover <rkitover@gmail.com>
31 lines
743 B
Batchfile
31 lines
743 B
Batchfile
@echo off
|
|
|
|
FOR %%i IN ("dsaparam.pem" "dsa_priv.pem" "dsa_pub.pem") DO (
|
|
if exist %%i (
|
|
echo There's already a %%i here! Move it aside or be more careful!
|
|
exit /b 1
|
|
)
|
|
)
|
|
|
|
openssl dsaparam 4096 > dsaparam.pem
|
|
|
|
openssl gendsa dsaparam.pem -out dsa_priv.pem
|
|
del /F /Q dsaparam.pem
|
|
openssl dsa -in dsa_priv.pem -pubout -out dsa_pub.pem
|
|
|
|
FOR %%i IN ("dsa_priv.pem" "dsa_pub.pem") DO (
|
|
if not exist %%i (
|
|
echo Failed to create %%i!
|
|
exit /b 1
|
|
)
|
|
)
|
|
|
|
echo[
|
|
echo Generated two files:
|
|
echo dsa_priv.pem: your private key. Keep it secret and don't share it!
|
|
echo dsa_pub.pem: public counterpart to include in youe app.
|
|
|
|
echo BACK UP YOUR PRIVATE KEY AND KEEP IT SAFE!
|
|
echo If you lose it, your users will be unable to upgrade!
|
|
echo[
|