mirror of
https://github.com/valitydev/curator-opensearch.git
synced 2024-11-06 02:05:19 +00:00
16 lines
426 B
Python
16 lines
426 B
Python
#!/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)
|