From 9e65069e4e90dbcd20886b5cee4e8d3eb1c802b2 Mon Sep 17 00:00:00 2001 From: Perry Werneck Date: Mon, 2 Sep 2019 16:56:40 -0300 Subject: [PATCH] Experimenting with zypper ar. --- win/pack.sh | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+), 0 deletions(-) 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