-
Notifications
You must be signed in to change notification settings - Fork 9
/
after_build.sh
executable file
·35 lines (31 loc) · 1.01 KB
/
after_build.sh
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
#!/bin/bash
#=================================================
# this script is from https://github.com/lunatickochiya/Lunatic-s805-rockchip-Action
# Written By lunatickochiya
# QQ group :286754582 https://jq.qq.com/?_wv=1027&k=5QgVYsC
#=================================================
#cd openwrt
#mkdir bin/out2
#mkdir kernelipks
#mkdir ipks
#mkdir sdk
#rm -rf build_dir/target* build_dir/toolchain* staging_dir/target* staging_dir/toolchain*
#cp -u -f bin/targets/*/*/packages/* kernelipks/
#cp -u -f bin/targets/*/*/* bin/out2/
#cp -u -f -r bin/packages/* ipks/
#zip -qq -r kernelipks.zip kernelipks
#zip -qq -r out.zip bin/out2
#zip -qq -r ipks.zip ipks
#echo "Copy Zip Success!"
#cp -f kernelipks.zip bin/targets/*/
#cp -f ipks.zip bin/targets/*/*/
# Enter your commands here, e.g.
#echo "Copy IPK Success!"
cd openwrt
mkdir kernelipks
mkdir ipks
cp -u -f bin/targets/*/*/packages/* kernelipks/
cp -u -f -r bin/packages/* ipks/
zip -qq -r kernelipks.zip kernelipks
zip -qq -r ipks.zip ipks
echo "Copy ipk 2 Zip Success!"