Initial commit

This commit is contained in:
Agatha Lovelace 2022-03-31 19:58:16 +02:00
commit 0558727ebe
Signed by: sorceress
GPG Key ID: 11BBCFC65FC9F401
3 changed files with 105 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
out
Tusky
*.keystore

52
patch.sh Executable file
View File

@ -0,0 +1,52 @@
#!/bin/bash
# Prepare
echo ":: Downloading Tusky"
rm -rf Tusky
git clone https://github.com/tuskyapp/Tusky.git
# Apply theme
echo ":: Patching Theme"
patch -d Tusky/app/src/main/res/values/ <theme.patch
# Build
#
# Use sdkmanager to install android sdk and accept the license, then change the path here.
export ANDROID_SDK_ROOT="/opt/android-sdk/"
echo ":: Building app"
cd Tusky/
./gradlew assembleBlueRelease
# Sign
#
# Create a keystore:
# keytool -genkey -v -keystore my-release-key.keystore -alias alias_name -keyalg RSA -keysize 2048 -validity 10000
#
echo ":: Signing app"
export APKSIGNER=$(find $ANDROID_SDK_ROOT -type f -executable -name apksigner)
read -p "Enter keystore password: " -s KEYSTORE_PWD
cd ..
mkdir -p out
$APKSIGNER sign \
--ks agatha.keystore \
--ks-key-alias "Agatha" \
--ks-pass pass:$KEYSTORE_PWD \
--key-pass pass:$KEYSTORE_PWD \
--in Tusky/app/build/outputs/apk/blue/release/app-blue-release-unsigned.apk \
--out "out/tusky-blue-$(date +'%F-%T').apk"
SUCCESS=$?
# Cleanup
echo ":: Cleaning up"
rm -rf Tusky
rm -f out/*.idsig
if [ $SUCCESS -eq 0 ]; then
echo "Patch successful!"
else
echo "Patch failed :("
fi

50
theme.patch Normal file
View File

@ -0,0 +1,50 @@
diff '--color=auto' -Naur Tusky/app/src/main/res/values/colors.xml Tusky-edited/app/src/main/res/values/colors.xml
--- Tusky/app/src/main/res/values/colors.xml 2022-03-31 15:46:39.701881159 +0200
+++ Tusky-edited/app/src/main/res/values/colors.xml 2022-03-31 16:02:41.435376924 +0200
@@ -1,30 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
- <color name="tusky_blue">#2b90d9</color>
- <color name="tusky_blue_light">#56a7e1</color>
- <color name="tusky_orange">#ca8f04</color>
- <color name="tusky_orange_light">#fab207</color>
+ <color name="tusky_blue">#7D5BA6</color>
+ <color name="tusky_blue_light">#9371bc</color>
+ <color name="tusky_orange">#e5adea</color>
+ <color name="tusky_orange_light">#f3c3f7</color>
<color name="tusky_green">#19a341</color>
<color name="tusky_green_light">#25d069</color>
<color name="tusky_red">#DF1553</color>
- <color name="white">#fff</color>
+ <color name="white">#F7EDF7</color>
<color name="black">#000</color>
<color name="notification_color">@color/tusky_blue</color>
<!-- the number roughly corresponds to the % lightness of the grey -->
- <color name="tusky_grey_05">#070b14</color>
- <color name="tusky_grey_10">#16191f</color>
- <color name="tusky_grey_20">#282c37</color>
- <color name="tusky_grey_25">#313543</color>
- <color name="tusky_grey_30">#444b5d</color>
- <color name="tusky_grey_40">#596378</color>
- <color name="tusky_grey_50">#6e7b92</color>
- <color name="tusky_grey_70">#9baec8</color>
- <color name="tusky_grey_80">#b9c8d8</color>
- <color name="tusky_grey_90">#d9e1e8</color>
- <color name="tusky_grey_95">#ebeff4</color>
+ <color name="tusky_grey_05">#1A1423</color>
+ <color name="tusky_grey_10">#221b2d</color>
+ <color name="tusky_grey_20">#292035</color>
+ <color name="tusky_grey_25">#352b44</color>
+ <color name="tusky_grey_30">#423754</color>
+ <color name="tusky_grey_40">#4e4160</color>
+ <color name="tusky_grey_50">#635677</color>
+ <color name="tusky_grey_70">#8d7da5</color>
+ <color name="tusky_grey_80">#ab9cc1</color>
+ <color name="tusky_grey_90">#c9bcdd</color>
+ <color name="tusky_grey_95">#e0d3ea</color>
<color name="transparent_tusky_blue">#8c2b90d9</color>
<color name="transparent_black">#8f000000</color>