-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
pack.py
executable file
·41 lines (32 loc) · 1.14 KB
/
pack.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
'''
Pyabr OS
Python Cloud Operating System Platform (c) 2021 PyFarsi. Free Software GNU General Public License v3.0
- Informations
* Name: Pyabr
* Founder: Mani Jamali
* Developers: PyFarsi Community
* Package Manager: Paye, PyPI
* License: GNU General Publice License v3.0
- Official Website
* Persian Page: https://pyabr.ir
* English Page: https://en.pyabr.ir
'''
import subprocess, os, shutil,clean
from buildlibs import pack_archives as pack
# configure #
if not os.path.isdir ("app"):
os.mkdir ("app")
os.mkdir ("app/cache")
os.mkdir ("app/cache/archives")
os.mkdir ("app/cache/archives/data")
os.mkdir ("app/cache/archives/control")
os.mkdir ("app/cache/archives/code")
os.mkdir ("app/cache/archives/build")
os.mkdir ("app/cache/gets")
if not os.path.isdir ('stor'): os.mkdir ('stor')
if not os.path.isdir ("stor/app"): os.mkdir ("stor/app")
if not os.path.isdir ("stor/app/packages"): os.mkdir ("stor/app/packages")
if not os.path.isdir ('build-packs'): os.mkdir('build-packs')
pack.linuxinstall()
shutil.make_archive('stor','zip','stor')
clean.clean()