Skip to content
Open
Changes from all commits
Commits
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
21 changes: 7 additions & 14 deletions publish_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,10 @@
#
# Instructions
#
# - Install jfrog cli https://jfrog.com/getcli/
# Packages may already be installed. Otherwise, a quick setup:
#
# - Run jfrog config add, to configure credentials. Example:
#
# jfrog config add
# Server ID: server1
# JFrog platform URL: https://boostorg.jfrog.io
# Access token (Leave blank for username and password/API key):
# User: _your_username_
# Password/API key: _your_password_
# Is the Artifactory reverse proxy configured to accept a client certificate? (y/n) [n]? n
# [Info] Encrypting password...
# apt-get update
# apt-get install python3 python3-dotenv python3-requests rclone curl 7zip zip gzip bzip2 unzip tar pigz bzip2 lbzip2 pbzip2 time htop locate nload
#
# - Run the script. For example, to publish boost_1_76_0
#
Expand Down Expand Up @@ -348,6 +340,7 @@ def preflight():
"tar",
"pigz",
"lbzip2",
"pbzip2",
"time",
]
for required_executable in required_executables:
Expand Down Expand Up @@ -701,8 +694,8 @@ def import_new_releases():
unzip_method = {}
unzip_method[".7z"] = "7z x"
unzip_method[".zip"] = "unzip -q"
unzip_method[".tar.bz2"] = "tar -xf"
unzip_method[".tar.gz"] = "tar -xf"
unzip_method[".tar.bz2"] = "tar --use-compress-program=pbzip2 -xf"
unzip_method[".tar.gz"] = "tar --use-compress-program=pigz -xf"
zip_method = {}
zip_method[".7z"] = "7z a -bd -mx=7 -mmt8 -ms=on"
zip_method[".zip"] = "zip -qr -9"
Expand All @@ -713,7 +706,7 @@ def import_new_releases():
zip_extra_flags = {}
zip_extra_flags[".7z"] = ""
zip_extra_flags[".zip"] = ""
zip_extra_flags[".tar.bz2"] = "--use-compress-program=lbzip2"
zip_extra_flags[".tar.bz2"] = "--use-compress-program=pbzip2"
zip_extra_flags[".tar.gz"] = "--use-compress-program=pigz"

for s in suffixes:
Expand Down
Loading