Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mycard Bin Mat
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mycard Bin Mat
Commits
33b3b48b
Commit
33b3b48b
authored
Jul 30, 2022
by
nanahira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build aria2 from source & migrate to latest mingw
parent
d085ffd3
Pipeline
#15052
passed with stages
in 13 minutes and 57 seconds
Changes
4
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
991 additions
and
10 deletions
+991
-10
.gitignore
.gitignore
+1
-0
.gitlab-ci.yml
.gitlab-ci.yml
+72
-10
aria2-makefiles/Makefile.arm64
aria2-makefiles/Makefile.arm64
+469
-0
aria2-makefiles/Makefile.x86_64
aria2-makefiles/Makefile.x86_64
+449
-0
No files found.
.gitignore
0 → 100644
View file @
33b3b48b
/aria2-src
.gitlab-ci.yml
View file @
33b3b48b
variables
:
variables
:
GIT_DEPTH
:
"
1"
GIT_DEPTH
:
"
1"
ARIA2_VERSION
:
'
1.3
5
.0'
ARIA2_VERSION
:
'
1.3
6
.0'
stages
:
stages
:
-
prepare
-
prepare
-
build
-
build
-
combine
-
deploy
-
deploy
macOS_bin
:
aria2_src
:
stage
:
prepare
stage
:
prepare
tags
:
-
linux
script
:
#- 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
#- cd aria2-src
#- autoreconf -i
#- cd ..
-
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 -
artifacts
:
paths
:
-
aria2-src
.macOS_bin_arch
:
stage
:
build
before_script
:
-
brew install automake autoconf libtool pkg-config docutils libxml2 git gnu-tar zstd
dependencies
:
-
aria2_src
artifacts
:
paths
:
-
arch-bin
script
:
-
export PATH=${PATH}:${homebrewRoot}/opt/gettext/bin
-
export PKG_CONFIG_PATH="${homebrewRoot}/opt/libxml2/lib/pkgconfig"
-
export LDFLAGS="-L${homebrewRoot}/opt/libxml2/lib"
-
export CPPFLAGS="-I${homebrewRoot}/opt/libxml2/include"
-
cd aria2-src
-
mv ../aria2-makefiles/Makefile.${targetArch} ./Makefile.release
-
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-src/aria2.${targetArch}/src/aria2c arch-bin/${targetArch}/
macOS_bin_x86_64
:
extends
:
.macOS_bin_arch
tags
:
-
macos
variables
:
targetArch
:
x86_64
homebrewRoot
:
/usr/local
macOS_bin_arm64
:
extends
:
.macOS_bin_arch
tags
:
-
macos-m1
variables
:
targetArch
:
arm64
homebrewRoot
:
/opt/homebrew
macOS_bin
:
stage
:
combine
tags
:
tags
:
-
macos
-
macos
dependencies
:
-
macOS_bin_x86_64
-
macOS_bin_arm64
artifacts
:
artifacts
:
paths
:
paths
:
-
dist
-
dist
script
:
script
:
-
brew install gnu-tar zstd
-
brew install gnu-tar zstd
-
mkdir -p bin dist
-
mkdir -p bin dist
-
c
url --location --retry 5 https://github.com/aria2/aria2/releases/download/release-${ARIA2_VERSION}/aria2-${ARIA2_VERSION}-osx-darwin.tar.bz2 | gtar --strip-components=2 -C bin -jxf - aria2-${ARIA2_VERSION}/bin/aria2c
-
c
d arch-bin/x86_64
-
cp -L -f /usr/local/bin/gtar bin/
-
ls -1 | xargs -I {} lipo -create -output ../../bin/{} {} ../arm64/{}
-
c
p -L -f /usr/local/bin/zstd bin
/
-
c
d ../..
/
-
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
:
prepare
dependencies
:
[]
tags
:
tags
:
-
linux
-
linux
artifacts
:
artifacts
:
...
@@ -31,11 +93,11 @@ windows_bin:
...
@@ -31,11 +93,11 @@ windows_bin:
-
dist
-
dist
script
:
script
:
-
mkdir -p bin dist
-
mkdir -p bin dist
-
curl --location --retry 5 --output aria2-${ARIA2_VERSION}-win-
32bit-build1.zip https://github.com/aria2/aria2/releases/download/release-${ARIA2_VERSION}/aria2-${ARIA2_VERSION}-win-32
bit-build1.zip
-
curl --location --retry 5 --output aria2-${ARIA2_VERSION}-win-
64bit-build1.zip https://github.com/aria2/aria2/releases/download/release-${ARIA2_VERSION}/aria2-${ARIA2_VERSION}-win-64
bit-build1.zip
-
unzip -o aria2-${ARIA2_VERSION}-win-
32bit-build1.zip aria2-${ARIA2_VERSION}-win-32
bit-build1/aria2c.exe
-
unzip -o aria2-${ARIA2_VERSION}-win-
64bit-build1.zip aria2-${ARIA2_VERSION}-win-64
bit-build1/aria2c.exe
-
mv aria2-${ARIA2_VERSION}-win-
32
bit-build1/aria2c.exe bin
-
mv aria2-${ARIA2_VERSION}-win-
64
bit-build1/aria2c.exe bin
-
rm -rf aria2-${ARIA2_VERSION}-win-
32bit-build1 aria2-${ARIA2_VERSION}-win-32
bit-build1.zip
-
rm -rf aria2-${ARIA2_VERSION}-win-
64bit-build1 aria2-${ARIA2_VERSION}-win-64
bit-build1.zip
-
curl --location --retry 5 "http
://downloads.sourceforge.net/project/msys2/Base/i686/msys2-base-i686-20200517.tar.xz" | tar --strip-components=3 -C bin -Jxf - msys32/usr/bin/msys-2.0.dll msys32/usr/bin/msys-bz2-1.dll msys32/usr/bin/msys-expat-1.dll msys32/usr/bin/msys-gcc_s-1.dll msys32/usr/bin/msys-iconv-2.dll msys32/usr/bin/msys-lz4-1.dll msys32/usr/bin/msys-lzma-5.dll msys32/usr/bin/msys-z.dll msys32/usr/bin/msys-zstd-1.dll msys32/usr/bin/sha256sum.exe msys32/usr/bin/msys-intl-8.dll msys32
/usr/bin/bsdtar.exe
-
curl --location --retry 5 "http
s://repo.msys2.org/distrib/x86_64/msys2-base-x86_64-20220603.tar.xz" | tar --strip-components=3 -C bin -Jxf - msys64/usr/bin/msys-2.0.dll msys64/usr/bin/msys-bz2-1.dll msys64/usr/bin/msys-crypto-1.1.dll msys64/usr/bin/msys-expat-1.dll msys64/usr/bin/msys-iconv-2.dll msys64/usr/bin/msys-lz4-1.dll msys64/usr/bin/msys-lzma-5.dll msys64/usr/bin/msys-z.dll msys64/usr/bin/msys-zstd-1.dll msys64/usr/bin/sha256sum.exe msys64/usr/bin/msys-intl-8.dll msys64
/usr/bin/bsdtar.exe
-
tar zcvf ./dist/mycard-mat-windows.tar.gz bin
-
tar zcvf ./dist/mycard-mat-windows.tar.gz bin
upload_to_minio
:
upload_to_minio
:
...
...
aria2-makefiles/Makefile.arm64
0 → 100644
View file @
33b3b48b
This diff is collapsed.
Click to expand it.
aria2-makefiles/Makefile.x86_64
0 → 100644
View file @
33b3b48b
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment