Commit 635189f0 authored by nanahira's avatar nanahira

dylib bundle

parent b3a68c43
Pipeline #15036 passed with stages
in 1 minute and 12 seconds
...@@ -8,45 +8,39 @@ stages: ...@@ -8,45 +8,39 @@ stages:
- combine - combine
- deploy - deploy
aria2_src: #aria2_src:
stage: prepare # stage: prepare
tags: # tags:
- linux # - linux
script: # script:
#- apt update && apt -y install libxml2-dev libcppunit-dev autoconf automake autotools-dev autopoint libtool #- apt update && apt -y install libxml2-dev libcppunit-dev autoconf automake autotools-dev autopoint libtool
#- git clone -b release-${ARIA2_VERSION} https://github.com/aria2/aria2 aria2-src #- git clone -b release-${ARIA2_VERSION} https://github.com/aria2/aria2 aria2-src
#- cd aria2-src #- cd aria2-src
#- autoreconf -i #- autoreconf -i
#- cd .. #- cd ..
- mkdir aria2-src # - mkdir aria2-src
- wget -O - https://github.com/aria2/aria2/releases/download/release-${ARIA2_VERSION}/aria2-${ARIA2_VERSION}.tar.gz | tar --strip-components=1 -C aria2-src -zxf - # - wget -O - https://github.com/aria2/aria2/releases/download/release-${ARIA2_VERSION}/aria2-${ARIA2_VERSION}.tar.gz | tar #--strip-components=1 -C aria2-src -zxf -
artifacts: # artifacts:
paths: # paths:
- aria2-src # - aria2-src
.macOS_bin_arch: .macOS_bin_arch:
stage: build stage: build
before_script: before_script:
- brew install automake autoconf libtool pkg-config docutils libxml2 git gnu-tar zstd - brew install gnu-tar zstd aria2 dylibbundler libxml2
dependencies: dependencies: []
- aria2_src
artifacts: artifacts:
paths: paths:
- arch-bin - arch-bin
script: script:
- export PATH=${PATH}:${homebrewRoot}/opt/gettext/bin - targetDir=arch-bin/${targetArch}
- export PKG_CONFIG_PATH="${homebrewRoot}/opt/libxml2/lib/pkgconfig" - mkdir -p ${targetDir}
- export LDFLAGS="-L${homebrewRoot}/opt/libxml2/lib" - cd ${targetDir}
- export CPPFLAGS="-I${homebrewRoot}/opt/libxml2/include" - cp -L -f ${homebrewRoot}/bin/gtar .
- cp -L -f ${homebrewRoot}/bin/zstd .
- cd aria2-src - cp -L -f ${homebrewRoot}/bin/aria2c .
- mv ../aria2-makefiles/Makefile.${targetArch} ./Makefile.release - dylibbundler -od -b -x ./aria2c -d ./libs-${targetArch} -p @executable_path/libs-${targetArch}
- make -f ./Makefile.release aria2.${targetArch}.build - cd ../..
- mkdir -p arch-bin/${targetArch}
- cp -L -f ${homebrewRoot}/bin/gtar arch-bin/${targetArch}/
- cp -L -f ${homebrewRoot}/bin/zstd arch-bin/${targetArch}/
- mv aria2.${targetArch}/aria2c arch-bin/${targetArch}/
macOS_bin_x86_64: macOS_bin_x86_64:
extends: .macOS_bin_arch extends: .macOS_bin_arch
...@@ -78,12 +72,12 @@ macOS_bin: ...@@ -78,12 +72,12 @@ macOS_bin:
- brew install gnu-tar zstd - brew install gnu-tar zstd
- mkdir -p bin dist - mkdir -p bin dist
- cd arch-bin/x86_64 - cd arch-bin/x86_64
- ls -1 | xargs -I {} lipo -create -output ../../bin/{} {} ../arm64/{} - ls -1 | sed '/libs-/d' | xargs -I {} lipo -create -output ../../bin/{} {} ../arm64/{}
- cd ../../ - cd ../../
- gtar zcvf ./dist/mycard-mat-macos.tar.gz bin - gtar zcvf ./dist/mycard-mat-macos.tar.gz bin
windows_bin: windows_bin:
stage: prepare stage: build
dependencies: [] dependencies: []
tags: tags:
- linux - linux
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment