-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.sh
More file actions
executable file
·47 lines (38 loc) · 824 Bytes
/
Copy pathbuild.sh
File metadata and controls
executable file
·47 lines (38 loc) · 824 Bytes
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
#!/bin/bash
DIRECTORY=
ASSETS=
createWorkSpace(){
mkdir build -p
cd build
}
buildProjet(){
pyinstaller ../main.py
}
initGlobalVariable(){
DIRECTORY=$(pwd)
ASSETS="$DIRECTORY/dist/main/customtkinter/"
}
creatAssestDirectory(){
mkdir -p $ASSETS
echo "assets directory have been created succesfully"
}
copyPluginDirectory() {
plugin_dir=$DIRECTORY/dist/main/
mkdir $plugin_dir/plugin/
cp -r ../plugin/colorshemes $plugin_dir/plugin/ && cp ../magic.png $plugin_dir
echo "copy colorscheme and magic.png"
}
copyAssetsFileFromLib(){
cp -r /usr/local/lib/python3*/dist-packages/customtkinter/assets $ASSETS
echo "assets file have been copied succesfully"
}
main(){
createWorkSpace
buildProjet
initGlobalVariable
creatAssestDirectory
copyAssetsFileFromLib
copyPluginDirectory
echo "build finish!"
}
main