diff --git a/win/pack.sh b/win/pack.sh index 0a4e157..2277bf5 100755 --- a/win/pack.sh +++ b/win/pack.sh @@ -426,6 +426,36 @@ makeInstaller() } # +# Add repos +# +addRepos() { + + for ARCH in ${TARGET_ARCHS} + do + case ${ARCH} in + x86_32) + # https://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Leap_15.1/windows:mingw:win32.repo + REPO_ARCH="win32" + ;; + + x86_64) + # https://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_Leap_15.1/windows:mingw:win64.repo + REPO_ARCH="win64" + ;; + + *) + failed "Arquitetura desconhecida: ${ARCH}" + + esac + + + echo zypper ar "https://download.opensuse.org/repositories/windows:/mingw:/${REPO_ARCH}/$(echo ${PRETTY_NAME} | sed "s@ @_@g")" ${REPO_ARCH} + + done + +} + +# # Check command line parameters # until [ -z "$1" ] @@ -449,6 +479,11 @@ do PRODUCT_NAME=${value} ;; + ADD-REPOS) + addRepos + exit 0 + ;; + CLEAR) if [ -d ~/public_html/win/${PRODUCT_NAME} ]; then rm -fr ~/public_html/win/${PRODUCT_NAME}/{x86_32,x86_64} -- libgit2 0.21.2