-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
error when LANG=None initial config have incorrect strength/energy adjustments to docs and scripts
- Loading branch information
Showing
17 changed files
with
516 additions
and
100 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
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
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 |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#!/bin/sh | ||
export version=`cat ../version` | ||
version=`cat ../version` | ||
|
||
p4a apk --private .. --dist_name="cat-printer" --package="io.github.naitlee.catprinter" --name="Cat Printer" \ | ||
--icon=icon.png --version=$version --bootstrap=webview --window --requirements=android,pyjnius,bleak \ | ||
--icon=icon.png --version=$version --bootstrap=webview --window --requirements="`cat build-deps.txt`" \ | ||
--blacklist-requirements=sqlite3,openssl --port=8095 --arch=arm64-v8a --blacklist="blacklist.txt" \ | ||
--presplash=blank.png --presplash-color=black --add-source="advancedwebview" --orientation=user \ | ||
--permission=BLUETOOTH --permission=BLUETOOTH_SCAN --permission=BLUETOOTH_CONNECT \ | ||
--permission=BLUETOOTH_ADMIN --permission=ACCESS_FINE_LOCATION --permission=ACCESS_COARSE_LOCATION | ||
--permission=BLUETOOTH_ADMIN --permission=ACCESS_FINE_LOCATION --permission=ACCESS_COARSE_LOCATION $@ |
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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
#!/bin/sh | ||
export version=`cat ../version` | ||
version=`cat ../version` | ||
|
||
rm -rf "dist" | ||
unzip -q "../cat-printer-bare-$version.zip" | ||
mv "cat-printer" "dist" | ||
p4a apk --private "dist" --dist_name="cat-printer" --package="io.github.naitlee.catprinter" --name="Cat Printer" \ | ||
--icon=icon.png --version="$version" --bootstrap=webview --window --requirements=android,pyjnius,bleak \ | ||
--icon=icon.png --version="$version" --bootstrap=webview --window --requirements="`cat build-deps.txt`" \ | ||
--blacklist-requirements=sqlite3,openssl --port=8095 --arch=arm64-v8a --release \ | ||
--presplash=blank.png --presplash-color=black --add-source="advancedwebview" --orientation=user \ | ||
--permission=BLUETOOTH --permission=BLUETOOTH_SCAN --permission=BLUETOOTH_CONNECT \ | ||
--permission=BLUETOOTH_ADMIN --permission=ACCESS_FINE_LOCATION --permission=ACCESS_COARSE_LOCATION | ||
--permission=BLUETOOTH_ADMIN --permission=ACCESS_FINE_LOCATION --permission=ACCESS_COARSE_LOCATION $@ |
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 |
---|---|---|
@@ -1,8 +1,13 @@ | ||
#!/bin/sh | ||
export version=`cat ../version` | ||
export unsigned_apk=cat-printer-release-unsigned-$version-.apk | ||
export signed_apk=cat-printer-android-$version.apk | ||
$ANDROIDSDK/build-tools/32.0.0/zipalign 4 $unsigned_apk $signed_apk | ||
$ANDROIDSDK/build-tools/32.0.0/apksigner sign --ks $1 $signed_apk | ||
version=`cat ../version` | ||
unsigned_apk=cat-printer-release-unsigned-$version-.apk | ||
signed_apk=cat-printer-android-$version.apk | ||
|
||
if { | ||
$ANDROIDSDK/build-tools/*/zipalign 4 $unsigned_apk $signed_apk; | ||
$ANDROIDSDK/build-tools/*/apksigner sign --ks $1 $signed_apk; | ||
}; then | ||
echo "Complete! Moving APK..." | ||
mv $signed_apk $signed_apk.idsig ../ | ||
rm *.apk | ||
fi |
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,8 @@ | ||
|
||
# Build for Android | ||
|
||
The build environment shall be setup manually, since it’s a bit complex, and I’m not so familiar with Android development. | ||
|
||
See [Manual Steps](./manual-steps.md) to get started. | ||
|
||
Android enthusiasts may help with automated build procedure, then for example F-Droid release would be possible. |
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 @@ | ||
async_timeout,typing-extensions,android,pyjnius,bleak |
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,32 @@ | ||
''' Some casual code to fix those alias files | ||
in Android NDK llvm bin to symlinks instead | ||
''' | ||
|
||
import os | ||
import sys | ||
|
||
MAX_LENGTH = 256 | ||
|
||
ndk_path = sys.argv[1] if len(sys.argv) > 1 else input('Android NDK path: ') | ||
|
||
bin_path = os.path.join(ndk_path, 'toolchains/llvm/prebuilt/linux-x86_64/bin/') | ||
|
||
workdir = os.getcwd() | ||
|
||
os.chdir(bin_path) | ||
|
||
try: | ||
for path in os.listdir(): | ||
# with this encoding it won't error when reading binary | ||
file = open(path, 'r', encoding='iso8859-1') | ||
data = file.read(MAX_LENGTH).strip() | ||
file.close() | ||
# inside the alias file is the filename that should be executed | ||
# let's see if there is one | ||
if os.path.isfile(data): | ||
print('Will fix %s -> %s' % (path, data)) | ||
#os.remove(path) | ||
os.rename(path, path + '.alias') | ||
os.symlink(data, path) | ||
finally: | ||
os.chdir(workdir) |
Oops, something went wrong.