Commit 90d16cba8f75242124efd91d8fec262259ec3a0a

Authored by Perry Werneck
1 parent 88c47013
Exists in develop

Publishing mingw package instead of tar.xz

.github/workflows/publish.yml
@@ -3,6 +3,9 @@ on: @@ -3,6 +3,9 @@ on:
3 pull_request: 3 pull_request:
4 branches: 4 branches:
5 - master 5 - master
  6 + push:
  7 + branches:
  8 + - develop
6 jobs: 9 jobs:
7 msys2-mingw: 10 msys2-mingw:
8 name: Publish for Windows 64 11 name: Publish for Windows 64
@@ -21,13 +24,13 @@ jobs: @@ -21,13 +24,13 @@ jobs:
21 with: 24 with:
22 msystem: mingw64 25 msystem: mingw64
23 update: true 26 update: true
24 - install: xz mingw-w64-x86_64-gcc automake autoconf make git pkgconf mingw-w64-x86_64-gettext gettext-devel mingw-w64-x86_64-openssl libtool 27 + install: dos2unix mingw-w64-x86_64-gcc automake autoconf make git pkgconf mingw-w64-x86_64-gettext gettext-devel mingw-w64-x86_64-openssl libtool
25 - name: CI-Build 28 - name: CI-Build
26 run: ./win/ci-build.sh 29 run: ./win/ci-build.sh
27 - uses: ncipollo/release-action@v1 30 - uses: ncipollo/release-action@v1
28 with: 31 with:
29 tag: ${{ steps.gettag.outputs.tag }} 32 tag: ${{ steps.gettag.outputs.tag }}
30 - artifacts: "*-lib3270.tar.xz" 33 + artifacts: "*-lib3270-*.pkg.tar.zst"
31 allowUpdates: true 34 allowUpdates: true
32 draft: false 35 draft: false
33 makeLatest: true 36 makeLatest: true
PKGBUILD.mingw
@@ -18,18 +18,13 @@ @@ -18,18 +18,13 @@
18 # You should have received a copy of the GNU Lesser General Public License 18 # You should have received a copy of the GNU Lesser General Public License
19 # along with this program. If not, see <https://www.gnu.org/licenses/>. 19 # along with this program. If not, see <https://www.gnu.org/licenses/>.
20 20
21 -_realname=lib3270 21 +_realname=$(grep AC_INIT "${startdir}/configure.ac" | cut -d[ -f2 | cut -d] -f1)
22 22
23 pkgname=${MINGW_PACKAGE_PREFIX}-${_realname} 23 pkgname=${MINGW_PACKAGE_PREFIX}-${_realname}
24 -source=(git+https://github.com/PerryWerneck/lib3270#branch=develop) 24 +source=()
25 25
26 -#pkgver() {  
27 -# cd ${srcdir}/${_realname}  
28 -# git describe --long --tags --abbrev=7 | sed 's/\([^-]*-g\)/r\1/;s/-/./g'  
29 -#}  
30 -  
31 -pkgver=5.4  
32 -pkgrel=1 26 +pkgver=$(grep AC_INIT "${startdir}/configure.ac" | cut -d[ -f3 | cut -d] -f1)
  27 +pkgrel=0
33 pkgdesc="TN3270 Access library" 28 pkgdesc="TN3270 Access library"
34 url="https://github.com/PerryWerneck/${_realname}" 29 url="https://github.com/PerryWerneck/${_realname}"
35 arch=(i686 x86_64) 30 arch=(i686 x86_64)
locale/pt_BR.po
@@ -2071,7 +2071,7 @@ msgstr &quot;Aguardando resposta do pedido de upload&quot; @@ -2071,7 +2071,7 @@ msgstr &quot;Aguardando resposta do pedido de upload&quot;
2071 msgid "Warning" 2071 msgid "Warning"
2072 msgstr "Alerta" 2072 msgstr "Alerta"
2073 2073
2074 -#: src/core/windows/util.c:123 src/core/windows/util.c:166 2074 +#: src/core/windows/util.c:124 src/core/windows/util.c:167
2075 #, c-format 2075 #, c-format
2076 msgid "Windows error %d" 2076 msgid "Windows error %d"
2077 msgstr "Erro windows foi %d" 2077 msgstr "Erro windows foi %d"