-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Init Android app base code from https://github.com/Vencord/Vendroid
- Loading branch information
octospacc
committed
Dec 27, 2023
1 parent
561430d
commit 5b1cb35
Showing
33 changed files
with
1,792 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Release | ||
on: | ||
push: | ||
pull_request: | ||
branches: main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout builds | ||
uses: actions/checkout@main | ||
|
||
- name: Setup JDK 11 | ||
uses: actions/setup-java@main | ||
with: | ||
java-version: 11 | ||
distribution: adopt | ||
|
||
- name: Setup Android SDK | ||
uses: android-actions/setup-android@7c5672355aaa8fde5f97a91aa9a99616d1ace6bc # v2.0.10 | ||
|
||
- name: Setup credentials | ||
run: | | ||
base64 -d <<< "$KEYSTORE_BASE64" > $HOME/keystore.jks | ||
env: | ||
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }} | ||
|
||
- name: Build Artifact | ||
run: | | ||
cd ./app-android | ||
chmod +x ./gradlew | ||
./gradlew app:assembleRelease \ | ||
-Pandroid.injected.signing.store.file="$HOME/keystore.jks" \ | ||
-Pandroid.injected.signing.store.password="$KEYSTORE_PASSWORD" \ | ||
-Pandroid.injected.signing.key.alias="$KEY_ALIAS" \ | ||
-Pandroid.injected.signing.key.password="$KEY_PASSWORD" | ||
mv app/build/outputs/apk/release/app-release.apk Spaccamient-latest.apk | ||
gh release create $TAG --generate-notes --title "Spaccamient ${{ github.sha }}" Spaccamient-latest.apk | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
KEY_ALIAS: ${{ secrets.KEYSTORE_ALIAS }} | ||
KEY_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | ||
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | ||
|
||
- uses: actions/upload-artifact@main | ||
with: | ||
name: Spaccamient | ||
path: app-android/app/build/outputs/apk/release/app-release.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Release | ||
on: | ||
push: | ||
pull_request: | ||
branches: main | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout builds | ||
uses: actions/checkout@main | ||
|
||
- name: Setup JDK 11 | ||
uses: actions/setup-java@main | ||
with: | ||
java-version: 11 | ||
distribution: adopt | ||
|
||
- name: Setup Android SDK | ||
uses: android-actions/setup-android@7c5672355aaa8fde5f97a91aa9a99616d1ace6bc # v2.0.10 | ||
|
||
- name: Setup credentials | ||
run: | | ||
base64 -d <<< "$KEYSTORE_BASE64" > $HOME/keystore.jks | ||
env: | ||
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }} | ||
|
||
- name: Build Artifact | ||
run: | | ||
chmod +x ./gradlew | ||
./gradlew app:assembleRelease \ | ||
-Pandroid.injected.signing.store.file="$HOME/keystore.jks" \ | ||
-Pandroid.injected.signing.store.password="$KEYSTORE_PASSWORD" \ | ||
-Pandroid.injected.signing.key.alias="$KEY_ALIAS" \ | ||
-Pandroid.injected.signing.key.password="$KEY_PASSWORD" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
KEY_ALIAS: ${{ secrets.KEYSTORE_ALIAS }} | ||
KEY_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | ||
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | ||
|
||
- uses: actions/upload-artifact@main | ||
with: | ||
name: VencordDev | ||
path: app/build/outputs/apk/release/app-release.apk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Release | ||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout builds | ||
uses: actions/checkout@main | ||
|
||
- name: Setup JDK 11 | ||
uses: actions/setup-java@main | ||
with: | ||
java-version: 11 | ||
distribution: adopt | ||
|
||
- name: Setup Android SDK | ||
uses: android-actions/setup-android@7c5672355aaa8fde5f97a91aa9a99616d1ace6bc # v2.0.10 | ||
|
||
- name: Setup credentials | ||
run: | | ||
base64 -d <<< "$KEYSTORE_BASE64" > $HOME/keystore.jks | ||
env: | ||
KEYSTORE_BASE64: ${{ secrets.KEYSTORE_BASE64 }} | ||
|
||
- name: Get some values needed for the release | ||
id: release_values | ||
run: | | ||
echo "release_tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | ||
- name: Build Release | ||
run: | | ||
chmod +x ./gradlew | ||
./gradlew app:assembleRelease \ | ||
-Pandroid.injected.signing.store.file="$HOME/keystore.jks" \ | ||
-Pandroid.injected.signing.store.password="$KEYSTORE_PASSWORD" \ | ||
-Pandroid.injected.signing.key.alias="$KEY_ALIAS" \ | ||
-Pandroid.injected.signing.key.password="$KEY_PASSWORD" | ||
mv app/build/outputs/apk/release/app-release.apk Vencord-$TAG.apk | ||
gh release create $TAG --generate-notes --title "Vencord $TAG" Vencord-$TAG.apk | ||
env: | ||
TAG: ${{ env.release_tag }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
KEY_ALIAS: ${{ secrets.KEYSTORE_ALIAS }} | ||
KEY_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | ||
KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
.idea | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild | ||
.cxx | ||
local.properties |
Oops, something went wrong.