Skip to content

Commit 44b3bc6

Browse files
Carl MillerCarl Miller
authored andcommitted
Fix APK installation: add signing and change package name
- Changed package ID to org.schabi.newpipe.scrolling to allow coexistence with original NewPipe - Added signing configuration using debug keystore - App will now appear as 'NewPipe Scrolling' on device - Updated GitHub Actions to create keystore for CI builds
1 parent 4e7da56 commit 44b3bc6

2 files changed

Lines changed: 28 additions & 8 deletions

File tree

.github/workflows/build-release-apk.yml

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ jobs:
2424
java-version: '21'
2525
cache: 'gradle'
2626

27+
- name: "Create debug keystore for signing"
28+
run: |
29+
mkdir -p ~/.android
30+
keytool -genkey -v -keystore ~/.android/debug.keystore -storepass android -alias androiddebugkey -keypass android -keyalg RSA -keysize 2048 -validity 10000 -dname "CN=Android Debug,O=Android,C=US"
31+
2732
- name: "Build release APK"
2833
run: ./gradlew assembleRelease --stacktrace
2934

@@ -40,7 +45,7 @@ jobs:
4045
4146
- name: "Rename APK"
4247
run: |
43-
mv app/build/outputs/apk/release/*.apk "app/build/outputs/apk/release/NewPipe_v${{ steps.version.outputs.version }}.apk"
48+
mv app/build/outputs/apk/release/*.apk "app/build/outputs/apk/release/NewPipeScrolling_v${{ steps.version.outputs.version }}.apk"
4449
4550
- name: "Upload APK as artifact"
4651
uses: actions/upload-artifact@v4
@@ -52,16 +57,20 @@ jobs:
5257
uses: softprops/action-gh-release@v1
5358
with:
5459
tag_name: v${{ steps.version.outputs.version }}-${{ github.run_number }}
55-
name: Release v${{ steps.version.outputs.version }}
60+
name: NewPipe Scrolling v${{ steps.version.outputs.version }}
5661
body: |
57-
## NewPipe Release v${{ steps.version.outputs.version }}
62+
## NewPipe Scrolling v${{ steps.version.outputs.version }}
63+
64+
This is a modified version of NewPipe that can be installed alongside the original app.
5865
5966
### New Features
6067
- **Hold to Fast-Forward**: Hold anywhere on the player to increase playback speed to 2x. Release to return to normal speed.
6168
- New setting in Video & Audio settings to enable/disable this feature.
6269
63-
### Download
64-
Download the APK below and install it on your Android device.
70+
### Installation
71+
1. Download the APK below
72+
2. Install on your Android device (enable "Install from unknown sources" if needed)
73+
3. This app will appear as "NewPipe Scrolling" and can coexist with the original NewPipe
6574
files: app/build/outputs/apk/release/*.apk
6675
draft: false
6776
prerelease: false

app/build.gradle.kts

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,19 @@ android {
3636
compileSdk = 36
3737
namespace = "org.schabi.newpipe"
3838

39+
signingConfigs {
40+
create("release") {
41+
// Use debug keystore for unsigned releases that can be installed
42+
storeFile = file("${System.getProperty("user.home")}/.android/debug.keystore")
43+
storePassword = "android"
44+
keyAlias = "androiddebugkey"
45+
keyPassword = "android"
46+
}
47+
}
48+
3949
defaultConfig {
40-
applicationId = "org.schabi.newpipe"
41-
resValue("string", "app_name", "NewPipe")
50+
applicationId = "org.schabi.newpipe.scrolling"
51+
resValue("string", "app_name", "NewPipe Scrolling")
4252
minSdk = 21
4353
targetSdk = 35
4454

@@ -72,9 +82,10 @@ android {
7282
}
7383

7484
release {
85+
signingConfig = signingConfigs.getByName("release")
7586
System.getProperty("packageSuffix")?.let { suffix ->
7687
applicationIdSuffix = suffix
77-
resValue("string", "app_name", "NewPipe $suffix")
88+
resValue("string", "app_name", "NewPipe Scrolling $suffix")
7889
}
7990
isMinifyEnabled = true
8091
isShrinkResources = false // disabled to fix F-Droid"s reproducible build

0 commit comments

Comments
 (0)