comparison Makefile @ 521:5d55f83b4e87

add more debug code
author Carl Byington <carl@five-ten-sg.com>
date Fri, 31 May 2024 18:18:41 -0600
parents caba9dfe7a89
children 775a81a78a2b
comparison
equal deleted inserted replaced
520:e6fa2c27140f 521:5d55f83b4e87
8 <?xml version=\"1.0\" encoding=\"utf-8\"?>\n\ 8 <?xml version=\"1.0\" encoding=\"utf-8\"?>\n\
9 <resources>\n\ 9 <resources>\n\
10 <string name=\"msg_version\" translatable=\"false\">510Connectbot $(ver) ($(id) $(da))</string>\n\ 10 <string name=\"msg_version\" translatable=\"false\">510Connectbot $(ver) ($(id) $(da))</string>\n\
11 </resources>\n 11 </resources>\n
12 apk:=$(dest)/510Connectbot-$(ver).$(style).apk 12 apk:=$(dest)/510Connectbot-$(ver).$(style).apk
13 debugapk:=$(dest)/510Connectbot-$(ver).debug.apk
13 signapk:=$(shell cat ~/.signapk) 14 signapk:=$(shell cat ~/.signapk)
15
16 # path to google binaries on AndroidBuild
17 adb=/home/carl/Android/Sdk/platform-tools/adb
18 aapt=/home/carl/Android/Sdk/build-tools/33.0.0/aapt
14 19
15 ifeq ($(style),release) 20 ifeq ($(style),release)
16 task:=assembleArmRelease 21 task:=assembleArmRelease
17 debug:=0 22 debug:=0
18 else 23 else
125 update.copyrights: 130 update.copyrights:
126 sed -i -re 's/(Copyright .C. ....-).... /\1$(year) /g' app/src/main/java/ch/ethz/ssh2/crypto/SecureRandomFix.java 131 sed -i -re 's/(Copyright .C. ....-).... /\1$(year) /g' app/src/main/java/ch/ethz/ssh2/crypto/SecureRandomFix.java
127 sed -i -re 's/(Copyright . ....-).... /\1$(year) /g' app/src/main/res/values/notrans.xml 132 sed -i -re 's/(Copyright . ....-).... /\1$(year) /g' app/src/main/res/values/notrans.xml
128 sed -i -re 's/(Copyright .C. ....-).... /\1$(year) /g' xml/510connectbot.in 133 sed -i -re 's/(Copyright .C. ....-).... /\1$(year) /g' xml/510connectbot.in
129 134
135 install.android:
136 $(adb) devices
137 echo installing $(debugapk)
138 $(adb) install -r -d $(debugapk)
139
140 logcat.device:
141 $(adb) logcat
142
130 push: 143 push:
131 # from from android build machine 144 # from from android build machine
132 hg push ssh://ns.five-ten-sg.com/usr/hg/510Connectbot || /bin/true 145 hg push ssh://ns.five-ten-sg.com/usr/hg/510Connectbot || /bin/true
133 hg push ssh://root@ns.five-ten-sg.com//usr/hg-repository/510Connectbot || /bin/true 146 hg push ssh://root@ns.five-ten-sg.com//usr/hg-repository/510Connectbot || /bin/true
134 hg push ssh://root@ns1.five-ten-sg.com//usr/hg-repository/510Connectbot || /bin/true 147 hg push ssh://root@ns1.five-ten-sg.com//usr/hg-repository/510Connectbot || /bin/true
145 # release procedure 158 # release procedure
146 # make any changes 159 # make any changes
147 # hg commit -m 'commit message' 160 # hg commit -m 'commit message'
148 # make build.asm.packages 161 # make build.asm.packages
149 # make push 162 # make push
163 # make install.android