mirror of https://github.com/odrling/Aegisub
Merge branch 'bugfixes' into feature
This commit is contained in:
commit
b0c77beef6
|
@ -1,5 +1,5 @@
|
||||||
; This file declares all installables related to spell checking and thesaurii in Aegisub
|
; This file declares all installables related to spell checking and thesaurii in Aegisub
|
||||||
|
|
||||||
[Files]
|
[Files]
|
||||||
Source: {#DEPS_DIR}\dictionaries\en_US.aff; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dictionaries/en_US
|
Source: {#DEPS_DIR}\dictionaries\en_US.aff; DestDir: {app}\dictionaries; Flags: skipifsourcedoesntexist ignoreversion; Components: dictionaries/en_US
|
||||||
Source: {#DEPS_DIR}\dictionaries\en_US.dic; DestDir: {app}\dictionaries; Flags: ignoreversion; Components: dictionaries/en_US
|
Source: {#DEPS_DIR}\dictionaries\en_US.dic; DestDir: {app}\dictionaries; Flags: skipifsourcedoesntexist ignoreversion; Components: dictionaries/en_US
|
||||||
|
|
|
@ -64,8 +64,8 @@ else
|
||||||
mkdir -p "${BUILD_DIR}/dictionaries"
|
mkdir -p "${BUILD_DIR}/dictionaries"
|
||||||
if ! test -f "${BUILD_DIR}/dictionaries/en_US.aff"; then
|
if ! test -f "${BUILD_DIR}/dictionaries/en_US.aff"; then
|
||||||
echo "Specified dictionary directory ${DICT_DIR} not found. Downloading dictionaries:"
|
echo "Specified dictionary directory ${DICT_DIR} not found. Downloading dictionaries:"
|
||||||
curl -L "https://downloads.sourceforge.net/project/openofficeorg.mirror/contrib/dictionaries/en_US.zip" -o "${BUILD_DIR}/dictionaries/en_US.zip"
|
curl -L "https://raw.githubusercontent.com/TypesettingTools/Aegisub-dictionaries/master/dicts/en_US.aff" -o "${BUILD_DIR}/dictionaries/en_US.aff"
|
||||||
unzip "${BUILD_DIR}/dictionaries/en_US.zip" -d "${BUILD_DIR}/dictionaries"
|
curl -L "https://raw.githubusercontent.com/TypesettingTools/Aegisub-dictionaries/master/dicts/en_US.dic" -o "${BUILD_DIR}/dictionaries/en_US.dic"
|
||||||
fi
|
fi
|
||||||
cp -v "${BUILD_DIR}/dictionaries/en_US.aff" "${PKG_DIR}/Contents/SharedSupport/dictionaries"
|
cp -v "${BUILD_DIR}/dictionaries/en_US.aff" "${PKG_DIR}/Contents/SharedSupport/dictionaries"
|
||||||
cp -v "${BUILD_DIR}/dictionaries/en_US.dic" "${PKG_DIR}/Contents/SharedSupport/dictionaries"
|
cp -v "${BUILD_DIR}/dictionaries/en_US.dic" "${PKG_DIR}/Contents/SharedSupport/dictionaries"
|
||||||
|
|
|
@ -137,10 +137,8 @@ if (!(Test-Path XAudio2_redist)) {
|
||||||
# dictionaries
|
# dictionaries
|
||||||
if (!(Test-Path dictionaries)) {
|
if (!(Test-Path dictionaries)) {
|
||||||
New-Item -ItemType Directory dictionaries
|
New-Item -ItemType Directory dictionaries
|
||||||
[Net.ServicePointManager]::SecurityProtocol = "Tls12" # Needed since otherwise downloading fails in some places like on the GitHub CI: https://stackoverflow.com/a/66614041/4730656
|
Invoke-WebRequest https://raw.githubusercontent.com/TypesettingTools/Aegisub-dictionaries/master/dicts/en_US.aff -OutFile dictionaries/en_US.aff -UseBasicParsing
|
||||||
Invoke-WebRequest https://downloads.sourceforge.net/project/openofficeorg.mirror/contrib/dictionaries/en_US.zip -UserAgent "Wget" -OutFile en_US.zip -UseBasicParsing
|
Invoke-WebRequest https://raw.githubusercontent.com/TypesettingTools/Aegisub-dictionaries/master/dicts/en_US.dic -OutFile dictionaries/en_US.dic -UseBasicParsing
|
||||||
Expand-Archive -LiteralPath en_US.zip -DestinationPath dictionaries
|
|
||||||
Remove-Item en_US.zip
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# localization
|
# localization
|
||||||
|
|
Loading…
Reference in New Issue