4 Commits
Author SHA1 Message Date
Arvex 37346d8bde fix: set action on RunCommandService intent
Build APK / build (push) Successful in 2m32s
2026-04-04 21:50:01 -06:00
Arvex 4d6fc3402b v0.2.1: add furry dragon launcher icon
Build APK / build (push) Successful in 2m14s
2026-04-04 20:23:06 -06:00
Arvex 4b813c91e2 fix: use startForegroundService on RunCommandService instead of sendBroadcast
Build APK / build (push) Successful in 2m24s
2026-04-04 20:13:50 -06:00
Arvex a99d13b376 fix(ci): use real versionName from build.gradle for tag, add RUN_COMMAND permission
Build APK / build (push) Successful in 2m24s
2026-04-04 19:37:58 -06:00
10 changed files with 14 additions and 10 deletions

No files matched your search

+4 -2
View File
@@ -33,17 +33,19 @@ jobs:
- name: Create Tag
run: |
TAG="v0.1.0-ci.${{ github.run_number }}"
VERSION=$(grep versionName app/build.gradle | sed "s/.*\"\(.*\)\".*/\1/")
TAG="v${VERSION}-b${{ github.run_number }}"
git tag $TAG
git push origin $TAG
echo "RELEASE_TAG=$TAG" >> $GITHUB_ENV
echo "APP_VERSION=$VERSION" >> $GITHUB_ENV
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ env.RELEASE_TAG }}
files: app/build/outputs/apk/debug/*.apk
name: "Build ${{ github.run_number }}"
name: ClawDash ${{ env.APP_VERSION }}
make_latest: true
env:
GITHUB_TOKEN: ${{ secrets.GITEA_TOKEN }}
+1
View File
@@ -4,6 +4,7 @@
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="com.termux.permission.RUN_COMMAND" />
<queries>
<package android:name="com.termux" />
</queries>
@@ -9,6 +9,7 @@ import android.view.*;
import android.widget.*;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.app.AlertDialog;
import androidx.core.content.ContextCompat;
import ca.rewr.clawdash.databinding.ActivityMainBinding;
import ca.rewr.clawdash.databinding.ItemServiceBinding;
import okhttp3.*;
@@ -134,12 +135,16 @@ public class MainActivity extends AppCompatActivity {
return;
}
String path = SCRIPTS + scriptName;
Intent intent = new Intent("com.termux.RUN_COMMAND");
intent.setPackage("com.termux");
Intent intent = new Intent();
intent.setAction("com.termux.RUN_COMMAND");
intent.setClassName("com.termux", "com.termux.app.RunCommandService");
intent.putExtra("com.termux.RUN_COMMAND_PATH", path);
intent.putExtra("com.termux.RUN_COMMAND_ARGUMENTS", new String[0]);
intent.putExtra("com.termux.RUN_COMMAND_WORKDIR", "/data/data/com.termux/files/home");
intent.putExtra("com.termux.RUN_COMMAND_BACKGROUND", true);
try {
sendBroadcast(intent);
ContextCompat.startForegroundService(this, intent);
} catch (Exception e) {
showAlertDialog("Failed", "Could not execute " + scriptName + "\n" + e.getMessage());
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

@@ -1,9 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
<background android:drawable="@color/bg" />
<foreground>
<shape android:shape="oval">
<solid android:color="@color/accent" />
</shape>
</foreground>
<foreground android:drawable="@drawable/ic_launcher_foreground" />
</adaptive-icon>
Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB