Revision: 10502 https://osdn.net/projects/ttssh2/scm/svn/commits/10502 Author: zmatsuo Date: 2023-01-16 22:24:27 +0900 (Mon, 16 Jan 2023) Log Message: ----------- ファイル名を変更 Added Paths: ----------- trunk/buildtools/install_innosetup.bat trunk/buildtools/install_innosetup.cmake trunk/buildtools/install_innosetup.md Removed Paths: ------------- trunk/buildtools/innosetup.cmake trunk/buildtools/innosetup.md -------------- next part -------------- Deleted: trunk/buildtools/innosetup.cmake =================================================================== --- trunk/buildtools/innosetup.cmake 2023-01-16 13:24:18 UTC (rev 10501) +++ trunk/buildtools/innosetup.cmake 2023-01-16 13:24:27 UTC (rev 10502) @@ -1,78 +0,0 @@ -# cmake -P innosetup.cmake - -# check innosetup -# 6.2.1 -set(CHECK_FILE innosetup6/bin/ISCC.exe) -set(CHECK_HASH "0d02e30a6ad432a50eb86f1ecf330147046e671de340bcb43a170fecbd19bf51") -if(EXISTS ${CHECK_FILE}) - file(SHA256 ${CHECK_FILE} HASH) - if(${HASH} STREQUAL ${CHECK_HASH}) - return() - endif() - message("file ${CHECK_FILE}") - message("actual HASH=${HASH}") - message("expect HASH=${CHECK_HASH}") -endif() - -# unrar -# https://www.rarlab.com/rar_add.htm -# RAR/Extras page, UnRAR for Windows 6.11 -set(UNRAR_ZIP "unrarw32.exe") -set(UNRAR_URL "https://www.rarlab.com/rar/unrarw32.exe") -set(UNRAR_HASH "c470e0f912653c5600d8d964c30b0e7e8a2a7beb42807bb09236ca4d9ba657cc") -file(MAKE_DIRECTORY "download/unrar") -file(DOWNLOAD - ${UNRAR_URL} - download/unrar/${UNRAR_ZIP} - EXPECTED_HASH SHA256=${UNRAR_HASH} - SHOW_PROGRESS - ) -if(EXISTS "unrar") - file(REMOVE_RECURSE "unrar") -endif() -file(MAKE_DIRECTORY "unrar") -execute_process( - COMMAND ../download/unrar/${UNRAR_ZIP} /s - WORKING_DIRECTORY "unrar" - ) - -# innounp -set(INNOUNP_RAR "innounp050.rar") -set(INNOUNP_URL "https://sourceforge.net/projects/innounp/files/innounp/innounp%200.50/${INNOUNP_RAR}/download") -set(INNOUNP_HASH "1d8837540ccc15d98245a1c73fd08f404b2a7bdfe7dc9bed2fdece818ff6df67") -file(MAKE_DIRECTORY "download/innounp") -file(DOWNLOAD - ${INNOUNP_URL} - download/innounp/${INNOUNP_RAR} - EXPECTED_HASH SHA256=${INNOUNP_HASH} - SHOW_PROGRESS - ) -if(EXISTS "innounp") - file(REMOVE_RECURSE "innounp") -endif() -file(MAKE_DIRECTORY "innounp") -execute_process( - COMMAND ../unrar/UnRAR.exe x ../download/innounp/${INNOUNP_RAR} - WORKING_DIRECTORY "innounp" - ) - -# innosetup 6 -set(INNOSETUP_EXE "innosetup-6.2.1.exe") -set(INNOSETUP_HASH "50d21aab83579245f88e2632a61b943ad47557e42b0f02e6ce2afef4cdd8deb1") -file(MAKE_DIRECTORY "download/innosetup6") -file(DOWNLOAD - https://files.jrsoftware.org/is/6/${INNOSETUP_EXE} - download/innosetup6/${INNOSETUP_EXE} - EXPECTED_HASH SHA256=${INNOSETUP_HASH} - SHOW_PROGRESS - ) -if(EXISTS "innosetup6") - file(REMOVE_RECURSE "innosetup6") -endif() -file(MAKE_DIRECTORY "innosetup6") -execute_process( - COMMAND ../innounp/innounp.exe -x ../download/innosetup6/${INNOSETUP_EXE} - WORKING_DIRECTORY "innosetup6" - ) -file(RENAME "innosetup6/{app}" innosetup6/bin) -file(RENAME "innosetup6/{tmp}" innosetup6/tmp) Deleted: trunk/buildtools/innosetup.md =================================================================== --- trunk/buildtools/innosetup.md 2023-01-16 13:24:18 UTC (rev 10501) +++ trunk/buildtools/innosetup.md 2023-01-16 13:24:27 UTC (rev 10502) @@ -1,23 +0,0 @@ -# Inno Setup - -- https://jrsoftware.org/isinfo.php - -- `cmake -P innosetup.cmake` で innosetup を buildtools/ に展開します - -## Inno Setup をインストールせずに使用 - -- 'cmake -P innosetup.cmake' で innosetup を使えるよう準備する -- innosetupインストーラーから innosetup6/ を作成する - - innosetupインストーラーを解凍するために innounp を使用 - - innounp を解凍するために unrar を使用 -- buildtools/innosetup6/bin/ISCC.exe を使ってインストーラーを作成できる - -## UnRAR - -- https://www.rarlab.com/rar_add.htm - -## innounp - -the Inno Setup Unpacker - -- https://innounp.sourceforge.net/ Added: trunk/buildtools/install_innosetup.bat =================================================================== --- trunk/buildtools/install_innosetup.bat (rev 0) +++ trunk/buildtools/install_innosetup.bat 2023-01-16 13:24:27 UTC (rev 10502) @@ -0,0 +1,4 @@ +cd /d %~dp0 +set PATH=C:\Program Files\CMake\bin;%PATH% +cmake -P install_innosetup.cmake +pause Copied: trunk/buildtools/install_innosetup.cmake (from rev 10501, trunk/buildtools/innosetup.cmake) =================================================================== --- trunk/buildtools/install_innosetup.cmake (rev 0) +++ trunk/buildtools/install_innosetup.cmake 2023-01-16 13:24:27 UTC (rev 10502) @@ -0,0 +1,78 @@ +# cmake -P innosetup.cmake + +# check innosetup +# 6.2.1 +set(CHECK_FILE innosetup6/bin/ISCC.exe) +set(CHECK_HASH "0d02e30a6ad432a50eb86f1ecf330147046e671de340bcb43a170fecbd19bf51") +if(EXISTS ${CHECK_FILE}) + file(SHA256 ${CHECK_FILE} HASH) + if(${HASH} STREQUAL ${CHECK_HASH}) + return() + endif() + message("file ${CHECK_FILE}") + message("actual HASH=${HASH}") + message("expect HASH=${CHECK_HASH}") +endif() + +# unrar +# https://www.rarlab.com/rar_add.htm +# RAR/Extras page, UnRAR for Windows 6.11 +set(UNRAR_ZIP "unrarw32.exe") +set(UNRAR_URL "https://www.rarlab.com/rar/unrarw32.exe") +set(UNRAR_HASH "c470e0f912653c5600d8d964c30b0e7e8a2a7beb42807bb09236ca4d9ba657cc") +file(MAKE_DIRECTORY "download/unrar") +file(DOWNLOAD + ${UNRAR_URL} + download/unrar/${UNRAR_ZIP} + EXPECTED_HASH SHA256=${UNRAR_HASH} + SHOW_PROGRESS + ) +if(EXISTS "unrar") + file(REMOVE_RECURSE "unrar") +endif() +file(MAKE_DIRECTORY "unrar") +execute_process( + COMMAND ../download/unrar/${UNRAR_ZIP} /s + WORKING_DIRECTORY "unrar" + ) + +# innounp +set(INNOUNP_RAR "innounp050.rar") +set(INNOUNP_URL "https://sourceforge.net/projects/innounp/files/innounp/innounp%200.50/${INNOUNP_RAR}/download") +set(INNOUNP_HASH "1d8837540ccc15d98245a1c73fd08f404b2a7bdfe7dc9bed2fdece818ff6df67") +file(MAKE_DIRECTORY "download/innounp") +file(DOWNLOAD + ${INNOUNP_URL} + download/innounp/${INNOUNP_RAR} + EXPECTED_HASH SHA256=${INNOUNP_HASH} + SHOW_PROGRESS + ) +if(EXISTS "innounp") + file(REMOVE_RECURSE "innounp") +endif() +file(MAKE_DIRECTORY "innounp") +execute_process( + COMMAND ../unrar/UnRAR.exe x ../download/innounp/${INNOUNP_RAR} + WORKING_DIRECTORY "innounp" + ) + +# innosetup 6 +set(INNOSETUP_EXE "innosetup-6.2.1.exe") +set(INNOSETUP_HASH "50d21aab83579245f88e2632a61b943ad47557e42b0f02e6ce2afef4cdd8deb1") +file(MAKE_DIRECTORY "download/innosetup6") +file(DOWNLOAD + https://files.jrsoftware.org/is/6/${INNOSETUP_EXE} + download/innosetup6/${INNOSETUP_EXE} + EXPECTED_HASH SHA256=${INNOSETUP_HASH} + SHOW_PROGRESS + ) +if(EXISTS "innosetup6") + file(REMOVE_RECURSE "innosetup6") +endif() +file(MAKE_DIRECTORY "innosetup6") +execute_process( + COMMAND ../innounp/innounp.exe -x ../download/innosetup6/${INNOSETUP_EXE} + WORKING_DIRECTORY "innosetup6" + ) +file(RENAME "innosetup6/{app}" innosetup6/bin) +file(RENAME "innosetup6/{tmp}" innosetup6/tmp) Copied: trunk/buildtools/install_innosetup.md (from rev 10501, trunk/buildtools/innosetup.md) =================================================================== --- trunk/buildtools/install_innosetup.md (rev 0) +++ trunk/buildtools/install_innosetup.md 2023-01-16 13:24:27 UTC (rev 10502) @@ -0,0 +1,23 @@ +# Inno Setup + +- https://jrsoftware.org/isinfo.php + +- `cmake -P innosetup.cmake` で innosetup を buildtools/ に展開します + +## Inno Setup + +- 'cmake -P innosetup.cmake' で innosetup を使えるよう準備する +- innosetupインストーラーから innosetup6/ を作成する + - innosetupインストーラーを解凍するために innounp を使用 + - innounp を解凍するために unrar を使用 +- buildtools/innosetup6/bin/ISCC.exe を使ってインストーラーを作成できる + +## UnRAR + +- https://www.rarlab.com/rar_add.htm + +## innounp + +the Inno Setup Unpacker + +- https://innounp.sourceforge.net/