Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixing bundlers and macos builds. #67

Merged
merged 51 commits into from
Mar 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
2e17f72
Starting macos bundler.
PerryWerneck Apr 26, 2023
3f794f5
Fixing permissions.
PerryWerneck Apr 26, 2023
bc581a0
Using libv3270 draft for bundle.
PerryWerneck Apr 26, 2023
bb0fb10
Merge branch 'develop' into macos
PerryWerneck Apr 26, 2023
ffaae06
Update macpkg.yml
PerryWerneck Apr 26, 2023
aff00e9
Update macpkg.yml
PerryWerneck Apr 26, 2023
d054890
Should use glibtoolize on mac.
PerryWerneck Apr 26, 2023
53e42ea
Adding macos tools.
PerryWerneck Apr 26, 2023
e814e0c
Debuggin mac build.
PerryWerneck Apr 26, 2023
9fb7175
Merge branch 'develop' into macos
PerryWerneck Jan 1, 2024
8ced333
Fixing bundle path.
PerryWerneck Jan 2, 2024
d83869d
Fixing schema paths for macos bundle.
PerryWerneck Jan 4, 2024
fce5692
Fixing win32 build
PerryWerneck Dec 13, 2023
9ca97aa
Update to macOS Sonoma
andrebreves Jan 5, 2024
9b421de
Merge branch 'master' into macos
PerryWerneck Jan 12, 2024
04dbb34
Adding +x on bundle script.
PerryWerneck Jan 16, 2024
661afc0
Merge branch 'develop' into macos
PerryWerneck Mar 3, 2024
94210aa
Merge pull request #64 from PerryWerneck/macos
PerryWerneck Mar 3, 2024
2a63521
Debugging brew package.
PerryWerneck Mar 3, 2024
aeaa75a
'macos' folder conflicts with branch with same name.
PerryWerneck Mar 5, 2024
ed4c42b
Debugging macos action.
PerryWerneck Mar 5, 2024
3d70bc0
Changing autogen.sh for use in macos according to https://github.com/…
PerryWerneck Mar 5, 2024
b5df356
Removing macos path due to conflicts with the branch with the same name.
PerryWerneck Mar 5, 2024
f94aecc
Merge branch 'develop' into macos
PerryWerneck Mar 5, 2024
ebf74ac
Updating workflows.
PerryWerneck Mar 6, 2024
4552bc9
Debugging workflows.
PerryWerneck Mar 6, 2024
3b47a06
Update macos.yml
PerryWerneck Mar 6, 2024
d0bd730
Still trying to get macos action to work.
PerryWerneck Mar 6, 2024
3da0a1c
Merge pull request #65 from PerryWerneck/macos
PerryWerneck Mar 6, 2024
8f7711d
Updating win32 package.
PerryWerneck Mar 6, 2024
e4601a9
Debugging win32 action.
PerryWerneck Mar 6, 2024
78fb2d9
Debugging win32 action.
PerryWerneck Mar 6, 2024
18d4592
Merge pull request #66 from PerryWerneck/win
PerryWerneck Mar 6, 2024
db0ab5f
Debugging publish action.
PerryWerneck Mar 6, 2024
9fc5aee
Debugging publish action.
PerryWerneck Mar 6, 2024
0e9712c
Debugging publish workflow.
PerryWerneck Mar 6, 2024
8a61bce
Debugging publish action.
PerryWerneck Mar 6, 2024
425cd79
Debugging publish action.
PerryWerneck Mar 7, 2024
abfd34c
Debugging publish action.
PerryWerneck Mar 7, 2024
cb5156d
Debugging publish action.
PerryWerneck Mar 7, 2024
8bafce1
Debugging publish action.
PerryWerneck Mar 7, 2024
e2e03c2
Debugging windows publisher.
PerryWerneck Mar 7, 2024
de4033a
Debugging msys bundler.
PerryWerneck Mar 7, 2024
5b58705
Adding zip package.
PerryWerneck Mar 7, 2024
33f7f94
Debugging win32 package.
PerryWerneck Mar 7, 2024
b21224b
Fixing bundle script.
PerryWerneck Mar 7, 2024
e640d29
Debugging msys bundler.
PerryWerneck Mar 7, 2024
d6fbc75
Debugging win32 bundler.
PerryWerneck Mar 7, 2024
9dead1f
Debugging win32 bundler.
PerryWerneck Mar 7, 2024
0504390
Debugging publisher.
PerryWerneck Mar 7, 2024
1eb4148
Publish only on tag updates.
PerryWerneck Mar 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: check-macos
on:
push:
branches: [ "macos" ]
pull_request:
branches: [ "master" ]

jobs:
macos-build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Pre reqs
run: |
brew remove azure-cli
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
rm -rf /usr/local/bin/2to3*
rm -rf /usr/local/bin/idle3*
rm -rf /usr/local/bin/pydoc3*
rm -rf /usr/local/bin/python3
rm -rf /usr/local/bin/python3-config
rm -rf /usr/local/bin/python3*
rm -rf /usr/local/bin/python3*-config
find /usr/local/lib/node_modules/npm -delete
brew update
brew install xz automake libtool binutils coreutils curl gettext libtool openssl pkgconfig gtk+3
- uses: robinraju/release-downloader@v1.7
with:
repository: "PerryWerneck/lib3270"
latest: true
fileName: "macos-lib3270.tar.xz"
- uses: robinraju/release-downloader@v1.7
with:
repository: "PerryWerneck/libv3270"
latest: true
fileName: "macos-libv3270.tar.xz"
- name: build
run: ./mac/ci-build.sh

24 changes: 10 additions & 14 deletions .github/workflows/msys2.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
name: MSYS2
name: check-msys2
on:
pull_request:
branches:
- master
push:
branches:
- develop
branches: [ "win" ]
pull_request:
branches: [ "master" ]

jobs:
msys2-mingw:
name: Publish Windows 64
msys2-build:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
- uses: oprypin/find-latest-tag@v1
id: gettag
with:
repository: PerryWerneck/pw3270
releases-only: true
- uses: msys2/setup-msys2@v2
with:
msystem: mingw64
Expand All @@ -36,6 +29,9 @@ jobs:
latest: true
fileName: "mingw-w64-x86_64-libv3270-5.4-0-x86_64.pkg.tar.zst"
- name: CI-Build
run: ./win/ci-build.sh
run: |
pacman -U --noconfirm *.pkg.tar.zst
dos2unix PKGBUILD.mingw
makepkg BUILDDIR=/tmp/pkg -p PKGBUILD.mingw


140 changes: 140 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,140 @@
name: Publish
on:
push:
branches: [ "publish" ]
tags: [ "*" ]

jobs:
msys2-publish:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v3
- uses: msys2/setup-msys2@v2
with:
msystem: mingw64
update: true
install: dos2unix mingw-w64-x86_64-gcc automake autoconf make git zip pkgconf mingw-w64-x86_64-gettext gettext-devel mingw-w64-x86_64-openssl libtool mingw-w64-x86_64-gtk3 mingw-w64-x86_64-imagemagick mingw-w64-x86_64-optipng mingw-w64-x86_64-inkscape mingw-w64-x86_64-nsis
- uses: robinraju/release-downloader@v1.7
with:
repository: "PerryWerneck/lib3270"
latest: true
fileName: "mingw-w64-x86_64-lib3270-5.4-0-x86_64.pkg.tar.zst"
- uses: robinraju/release-downloader@v1.7
with:
repository: "PerryWerneck/libv3270"
latest: true
fileName: "mingw-w64-x86_64-libv3270-5.4-0-x86_64.pkg.tar.zst"
- uses: robinraju/release-downloader@v1.7
with:
repository: PerryWerneck/libipc3270
latest: true
fileName: mingw-w64-x86_64-libipc3270-5.5-0-x86_64.pkg.tar.zst
- uses: robinraju/release-downloader@v1.7
with:
repository: PerryWerneck/libhllapi
latest: true
fileName: mingw-w64-x86_64-libhllapi-5.5-0-x86_64.pkg.tar.zst
- uses: robinraju/release-downloader@v1.7
with:
repository: PerryWerneck/pw3270-plugin-ipc
latest: true
fileName: mingw-w64-x86_64-pw3270-plugin-ipc-5.5-0-x86_64.pkg.tar.zst
- name: MakePackage
run: |
pacman -U --noconfirm *.pkg.tar.zst
dos2unix PKGBUILD.mingw
makepkg BUILDDIR=/tmp/pkg -p PKGBUILD.mingw
- uses: oprypin/find-latest-tag@v1
id: gettag
with:
repository: PerryWerneck/pw3270
sort-tags: true
releases-only: true
- uses: ncipollo/release-action@v1
with:
tag: ${{ steps.gettag.outputs.tag }}
artifacts: "*-pw3270-5*.pkg.tar.zst"
allowUpdates: true
draft: true
makeLatest: true
omitBody: true
omitPrereleaseDuringUpdate: true
replacesArtifacts: true
- name: Make bundle
run: |
./autogen.sh
./win/bundle.msys --nsi --zip
find . -iname '*.exe'
find . -iname '*.zip'
- uses: ncipollo/release-action@v1
with:
tag: ${{ steps.gettag.outputs.tag }}
artifacts: "*.zip"
allowUpdates: true
draft: true
makeLatest: true
omitBody: true
omitPrereleaseDuringUpdate: true
replacesArtifacts: true
- uses: ncipollo/release-action@v1
with:
tag: ${{ steps.gettag.outputs.tag }}
artifacts: "pw3270-5*.exe"
allowUpdates: true
draft: true
makeLatest: true
omitBody: true
omitPrereleaseDuringUpdate: true
replacesArtifacts: true
macos-publish:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Pre reqs
run: |
brew remove azure-cli
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
find /usr/local/bin -lname '*/Library/Frameworks/Python.framework/*' -delete
rm -rf /usr/local/bin/2to3*
rm -rf /usr/local/bin/idle3*
rm -rf /usr/local/bin/pydoc3*
rm -rf /usr/local/bin/python3
rm -rf /usr/local/bin/python3-config
rm -rf /usr/local/bin/python3*
rm -rf /usr/local/bin/python3*-config
find /usr/local/lib/node_modules/npm -delete
brew update
brew install xz automake libtool binutils coreutils curl gettext libtool openssl pkgconfig gtk+3
- uses: robinraju/release-downloader@v1.7
with:
repository: "PerryWerneck/lib3270"
latest: true
fileName: "macos-lib3270.tar.xz"
- uses: robinraju/release-downloader@v1.7
with:
repository: "PerryWerneck/libv3270"
latest: true
fileName: "macos-libv3270.tar.xz"
- name: build
run: ./mac/ci-build.sh
- uses: oprypin/find-latest-tag@v1
id: gettag
with:
repository: PerryWerneck/pw3270
sort-tags: true
releases-only: true
- uses: ncipollo/release-action@v1
with:
tag: ${{ steps.gettag.outputs.tag }}
artifacts: "macos-pw3270.tar.xz"
allowUpdates: true
draft: false
makeLatest: true
omitBody: true
omitPrereleaseDuringUpdate: true
replacesArtifacts: true

84 changes: 0 additions & 84 deletions .github/workflows/winpkg.yml

This file was deleted.

13 changes: 7 additions & 6 deletions PKGBUILD.mingw
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ source=()

pkgver=$(grep AC_INIT "${startdir}/configure.ac" | cut -d[ -f3 | cut -d] -f1)
pkgrel=0
pkgdesc="TN3270 Access library"
pkgdesc="IBM 3270 Terminal emulator for GTK"
url="https://github.com/PerryWerneck/${_realname}"
arch=(i686 x86_64)
license=(LGPL-3.0-or-later)
Expand All @@ -38,12 +38,12 @@ conflicts=($pkgname)

prepare() {
rm -fr "$srcdir/$pkgname"
ln -snf "$startdir" "$srcdir/$pkgname"
mkdir -p "$srcdir/$pkgname"
}

build() {
cd $pkgname
./autogen.sh \
cd "$srcdir/$pkgname"
${startdir}/autogen.sh \
--prefix=${MINGW_PREFIX} \
--build=${MINGW_CHOST} \
--host=${MINGW_CHOST} \
Expand All @@ -53,10 +53,11 @@ build() {
}

package() {
cd $pkgname
cd "$srcdir/$pkgname"
make DESTDIR="${pkgdir}" install
install \
-Dm644 \
"LICENSE" \
"${startdir}/LICENSE" \
"${pkgdir}${MINGW_PREFIX}/share/licenses/${_realname}/LICENSE"
}

17 changes: 13 additions & 4 deletions autogen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,19 @@ cd ${srcdir}
mkdir -p ./scripts
mkdir -p m4

libtoolize --force
LIBTOOLIZE=$(which libtoolize)
if [ -z ${LIBTOOLIZE} ]; then
LIBTOOLIZE=$(which glibtoolize)
fi
if [ -z ${LIBTOOLIZE} ]; then
echo "Can't find libtoolize"
exit -1
fi

${LIBTOOLIZE} --force
if test $? != 0 ; then
echo "libtoolize failed."
exit -1
echo "libtoolize failed."
exit -1
fi

aclocal
Expand All @@ -40,7 +49,7 @@ autopoint

cd ${builddir}

test -n "$NOCONFIGURE" || "./configure" "$@"
test -n "$NOCONFIGURE" || "$srcdir/configure" --srcdir=${srcdir} $@



File renamed without changes.
File renamed without changes.
Loading
Loading