-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
These changes allow for a multi-architecture build process using `docker buildx` These changes are suitable for Curator 6.x and 7.x
- Loading branch information
Showing
3 changed files
with
46 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ARCH=$(uname -m) | ||
|
||
ln -s /lib/libc.musl-${ARCH}.so.1 ldd | ||
ln -s /lib /lib64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env python3 | ||
import shutil | ||
import certifi | ||
from platform import machine, system, python_version | ||
MAJOR, MINOR = tuple(python_version().split('.')[:-1]) | ||
SYSTEM = system().lower() | ||
BUILD = f'build/exe.{system().lower()}-{machine()}-{MAJOR}.{MINOR}' | ||
CERT = certifi.where() | ||
TARGET = 'curator_build' | ||
|
||
# First copy the cert to BUILD | ||
shutil.copy(CERT, BUILD) | ||
|
||
# Then rename the path of BUILD itself | ||
shutil.move(BUILD, TARGET) |