termux-connecting 1.1.23 → 1.1.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -138,60 +138,6 @@ else
138
138
  fi
139
139
  fi
140
140
 
141
- # ─── 6. Termux:API & Permission ───
142
- title "5. Cek Termux:API & Permission"
143
- HAS_API=false
144
- HAS_STORAGE=false
145
- HAS_BOOT=false
146
-
147
- if command -v termux-wifi-connectioninfo >/dev/null 2>&1; then
148
- HAS_API=true
149
- info "Termux:API package terinstall — WiFi SSID bisa dideteksi"
150
- else
151
- echo " Termux:API — menampilkan nama WiFi yang digunakan"
152
- echo " Install:"
153
- echo " pkg install termux-api"
154
- echo " Install aplikasi Termux:API dari F-Droid, lalu jalankan ulang"
155
- echo ""
156
- fi
157
-
158
- if [ -d "$HOME/storage" ]; then
159
- HAS_STORAGE=true
160
- info "Storage permission sudah diatur"
161
- else
162
- echo " Storage — akses ke penyimpanan HP"
163
- echo " Setup: termux-setup-storage"
164
- echo " Lalu izinkan permission di pop-up Android"
165
- echo ""
166
- fi
167
-
168
- if [ -f "$HOME/.termux/boot/boot-sshd" ] || [ -f "$HOME/.termux/boot/start-sshd" ]; then
169
- HAS_BOOT=true
170
- info "Termux:Boot aktif — sshd auto-start saat HP nyala"
171
- else
172
- echo " Termux:Boot — auto-start sshd setiap HP dinyalakan"
173
- echo " Setup otomatis: mkdir -p ~/.termux/boot"
174
- echo " && echo 'sshd' > ~/.termux/boot/boot-sshd"
175
- echo " && chmod +x ~/.termux/boot/boot-sshd"
176
- echo ""
177
- echo " Install aplikasi Termux:Boot dari F-Droid"
178
- echo " Reboot HP, sshd akan jalan otomatis"
179
- echo ""
180
- fi
181
-
182
- if ! $HAS_API || ! $HAS_STORAGE || ! $HAS_BOOT; then
183
- echo " ┌────────────────────────────────────────────┐"
184
- echo " │ Instalasi via F-Droid: │"
185
- echo " │ https://f-droid.org/packages/com.termux/ │"
186
- if ! $HAS_API; then
187
- echo " │ Termux:API → com.termux.api │"
188
- fi
189
- if ! $HAS_BOOT; then
190
- echo " │ Termux:Boot → com.termux.boot │"
191
- fi
192
- echo " └────────────────────────────────────────────┘"
193
- fi
194
-
195
141
  # ─── 7. Informasi Koneksi ───
196
142
  title "6. Informasi Koneksi"
197
143
  USERNAME=$(whoami)
@@ -290,3 +236,49 @@ echo ""
290
236
 
291
237
  echo "----------------------------------------"
292
238
  info "Setup selesai!"
239
+ echo ""
240
+
241
+ # ─── Opsional: Cek Permission ───
242
+ if confirm "Cek permission & install Termux:API/Boot (opsional)" "n"; then
243
+ echo ""
244
+ title "Cek Termux:API & Permission"
245
+
246
+ if command -v termux-wifi-connectioninfo >/dev/null 2>&1; then
247
+ info "Termux:API package terinstall"
248
+ else
249
+ echo " Termux:API — untuk deteksi nama WiFi"
250
+ if confirm " Install termux-api package" "y"; then
251
+ pkg install -y termux-api && info "termux-api terinstall"
252
+ fi
253
+ echo " Install juga aplikasi Termux:API dari F-Droid:"
254
+ echo " https://f-droid.org/packages/com.termux.api/"
255
+ echo ""
256
+ fi
257
+
258
+ if [ -d "$HOME/storage" ]; then
259
+ info "Storage permission sudah diatur"
260
+ else
261
+ echo " Storage permission — akses ke penyimpanan HP"
262
+ if confirm " Jalankan termux-setup-storage" "y"; then
263
+ termux-setup-storage
264
+ echo " Izininkan pop-up permission Android"
265
+ fi
266
+ echo ""
267
+ fi
268
+
269
+ if [ -f "$HOME/.termux/boot/boot-sshd" ]; then
270
+ info "Termux:Boot aktif — sshd auto-start saat HP nyala"
271
+ else
272
+ echo " Termux:Boot — auto-start sshd setiap HP dinyalakan"
273
+ if confirm " Setup boot script" "y"; then
274
+ mkdir -p "$HOME/.termux/boot"
275
+ echo 'sshd' > "$HOME/.termux/boot/boot-sshd"
276
+ chmod +x "$HOME/.termux/boot/boot-sshd"
277
+ info "Boot script dibuat: ~/.termux/boot/boot-sshd"
278
+ fi
279
+ echo " Install aplikasi Termux:Boot dari F-Droid:"
280
+ echo " https://f-droid.org/packages/com.termux.boot/"
281
+ echo " Reboot HP agar sshd jalan otomatis"
282
+ echo ""
283
+ fi
284
+ fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "termux-connecting",
3
- "version": "1.1.23",
3
+ "version": "1.1.24",
4
4
  "description": "CLI setup Termux + koneksi SSH dari PC/Mac dengan Telegram alert",
5
5
  "bin": {
6
6
  "termux-connecting": "bin/termux-connecting",