-
-
Notifications
You must be signed in to change notification settings - Fork 116
Expand file tree
/
Copy pathMakefile
More file actions
95 lines (75 loc) · 2.35 KB
/
Makefile
File metadata and controls
95 lines (75 loc) · 2.35 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
include environment
devapk:
make -C sbapp devapk
apk:
make -C sbapp apk
mkdir -p ./dist
fetchapk:
cp ./sbapp/bin/sideband-*-release.apk ./dist/
install:
make -C sbapp install
console:
make -C sbapp console
clean:
@echo Cleaning...
-rm -r ./build
-rm -r ./dist
cleanbuildozer:
make -C sbapp cleanall
cleanall: clean cleanbuildozer
remove_symlinks:
@echo Removing symlinks for build...
-rm ./RNS
-rm ./LXST
-rm ./LXMF
create_symlinks:
@echo Creating symlinks...
-ln -s ../Reticulum/RNS ./RNS
-ln -s ../LXST/LXST ./LXST
-ln -s ../LXMF/LXMF ./LXMF
preparewheel:
pyclean .
$(MAKE) -C sbapp cleanrns
compile_wheel:
python3 setup.py bdist_wheel
compile_sourcepkg:
python3 setup.py sdist
update_share:
$(MAKE) -C sbapp fetchshare
build_wheel: remove_symlinks update_share compile_wheel create_symlinks
build_spkg: remove_symlinks update_share compile_sourcepkg create_symlinks
prepare_win_pkg: clean build_spkg
-rm -r build/winpkg
mkdir -p build/winpkg
LC_ALL=C $(MAKE) -C ../Reticulum clean build_spkg
cp ../Reticulum/dist/rns-*.*.*.tar.gz build/winpkg
cd build/winpkg; tar -zxf rns-*.*.*.tar.gz
mv build/winpkg/rns-*.*.*/RNS build/winpkg; rm -r build/winpkg/rns-*.*.*
LC_ALL=C $(MAKE) -C ../LXMF clean build_spkg
cp ../LXMF/dist/lxmf-*.*.*.tar.gz build/winpkg
cd build/winpkg; tar -zxf lxmf-*.*.*.tar.gz
mv build/winpkg/lxmf-*.*.*/LXMF build/winpkg; rm -r build/winpkg/lxmf-*.*.*
LC_ALL=C $(MAKE) -C ../LXST clean build_spkg
cp ../LXST/dist/lxst-*.*.*.tar.gz build/winpkg
cd build/winpkg; tar -zxf lxst-*.*.*.tar.gz
mv build/winpkg/lxst-*.*.*/LXST build/winpkg; rm -r build/winpkg/lxst-*.*.*
rm build/winpkg/LXST/filterlib*.so
cp dist/sbapp-*.*.*.tar.gz build/winpkg
cd build/winpkg; tar -zxf sbapp-*.*.*.tar.gz
mv build/winpkg/sbapp-*.*.*/* build/winpkg; rm -r build/winpkg/sbapp-*.*.*
rm build/winpkg/LXST/Codecs/libs/pyogg/libs/macos -r
rm build/winpkg/sbapp/Makefile
rm build/winpkg/sbapp/buildozer.spec
cp winbuild.bat build/
mv build/winpkg build/sideband_sources
chmod -R a+rw build/sideband_sources
cd build; zip -r winbuild.zip sideband_sources winbuild.bat
mv build/winbuild.zip dist/winbuild.zip
build_winexe: prepare_win_pkg
cp dist/winbuild.zip $(WINDOWS_BUILD_TARGET)
release: build_wheel apk fetchapk
upload:
@echo Ready to publish release, hit enter to continue
@read VOID
@echo Uploading to PyPi...
twine upload dist/sbapp-*