File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11; This file declares all installables related to spell checking and thesaurii in Aegisub
22
33[Files]
4- Source : {#DEPS_DIR}\dictionaries\en_US.aff; DestDir : {app} \dictionaries; Flags : skipifsourcedoesntexist ignoreversion
5- Source : {#DEPS_DIR}\dictionaries\en_US.dic; DestDir : {app} \dictionaries; Flags : skipifsourcedoesntexist ignoreversion
4+ Source : {#DEPS_DIR}\dictionaries\en_US.aff; DestDir : {app} \dictionaries; Flags : ignoreversion ; Components : dictionaries/en_US
5+ Source : {#DEPS_DIR}\dictionaries\en_US.dic; DestDir : {app} \dictionaries; Flags : ignoreversion ; Components : dictionaries/en_US
Original file line number Diff line number Diff line change @@ -51,6 +51,9 @@ Copy-New-Item $InstallerDir\bin\aegisub.exe $PortableOutputDir
5151
5252Write-Output ' Copying - translations'
5353Copy-New - Items " $InstallerDir \share\locale\*" " $PortableOutputDir \locale" - Recurse
54+ Write-Output ' Copying - dictionaries'
55+ Copy-New - Item $InstallerDepsDir \dictionaries\en_US.aff $PortableOutputDir \dictionaries
56+ Copy-New - Item $InstallerDepsDir \dictionaries\en_US.dic $PortableOutputDir \dictionaries
5457Write-Output ' Copying - codecs'
5558Write-Output ' Copying - codecs\Avisynth'
5659Copy-New - Item $InstallerDepsDir \AvisynthPlus64\x64\system\DevIL.dll $PortableOutputDir
Original file line number Diff line number Diff line change @@ -61,7 +61,12 @@ echo "---- Copying dictionaries ----"
6161if test -f " ${DICT_DIR} " ; then
6262 cp -v " ${DICT_DIR} /*" " ${PKG_DIR} /Contents/SharedSupport/dictionaries"
6363else
64- echo " Specified dictionary directory ${DICT_DIR} not found!"
64+ echo " Specified dictionary directory ${DICT_DIR} not found. Downloading dictionaries:"
65+ mkdir " ${BUILD_DIR} /dictionaries"
66+ curl -L " https://downloads.sourceforge.net/project/openofficeorg.mirror/contrib/dictionaries/en_US.zip" -o " ${BUILD_DIR} /dictionaries/en_US.zip"
67+ unzip " ${BUILD_DIR} /dictionaries/en_US.zip" -d " ${BUILD_DIR} /dictionaries"
68+ cp -v " ${BUILD_DIR} /dictionaries/en_US.aff" " ${PKG_DIR} /Contents/SharedSupport/dictionaries"
69+ cp -v " ${BUILD_DIR} /dictionaries/en_US.dic" " ${PKG_DIR} /Contents/SharedSupport/dictionaries"
6570fi
6671
6772echo
Original file line number Diff line number Diff line change @@ -79,7 +79,14 @@ if (!(Test-Path VC_redist)) {
7979 Invoke-WebRequest https:// aka.ms/ vs/ 17 / release/ VC_redist.x64.exe - OutFile " $redistDir \VC_redist.x64.exe" - UseBasicParsing
8080}
8181
82- # TODO dictionaries
82+ # dictionaries
83+ if (! (Test-Path dictionaries)) {
84+ New-Item - ItemType Directory dictionaries
85+ [Net.ServicePointManager ]::SecurityProtocol = " Tls12" # Needed since otherwise downloading fails in some places like on the GitHub CI: https://stackoverflow.com/a/66614041/4730656
86+ Invoke-WebRequest https:// downloads.sourceforge.net/ project/ openofficeorg.mirror/ contrib/ dictionaries/ en_US.zip - UserAgent " Wget" - OutFile en_US.zip - UseBasicParsing
87+ Expand-Archive - LiteralPath en_US.zip - DestinationPath dictionaries
88+ Remove-Item en_US.zip
89+ }
8390
8491# localization
8592Set-Location $BuildRoot
You can’t perform that action at this time.
0 commit comments