-
Notifications
You must be signed in to change notification settings - Fork 9
/
setup.py
52 lines (45 loc) · 1.43 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
from distutils.cmd import Command
from os import getcwd
from setuptools import setup, find_packages
class InstallCommand(Command):
description = "make root dir"
user_options = []
def initialize_options(self):
pass
def finalize_options(self):
pass
def run(self):
import getpass, os, shutil
user_name = getpass.getuser()
esign_dir_path = "/Users/" + user_name + "/.esign/"
if not os.path.exists(esign_dir_path):
os.makedirs(esign_dir_path)
provisions_path = os.path.join(esign_dir_path, "provisions")
if not os.path.exists(provisions_path):
os.makedirs(provisions_path)
shutil.copytree(
os.path.join(getcwd(), "bin"), os.path.join(esign_dir_path, "bin")
)
setup(
name="esign",
description="A command-line tool for re-signing iOS IPA files",
version="1.2.1",
license="MIT",
author="Harlans",
author_email="[email protected]",
url="https://github.com/DargonLee/EasySignIpa",
python_requires=">=3.7",
packages=find_packages(),
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: POSIX :: Linux",
"Topic :: Utilities",
],
entry_points={
"console_scripts": [
"esign = esign.cli:main",
],
},
cmdclass={"install_command": InstallCommand},
)