mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-08 00:51:20 +00:00
test bundle packaging
This commit is contained in:
parent
c8a703ab3b
commit
8c1a0a5dd2
|
@ -75,8 +75,8 @@ steps:
|
||||||
from_secret: STANDALONE_KEYSTORE_PASS
|
from_secret: STANDALONE_KEYSTORE_PASS
|
||||||
FDROID_KEYSTORE_PASS:
|
FDROID_KEYSTORE_PASS:
|
||||||
from_secret: FDROID_KEYSTORE_PASS
|
from_secret: FDROID_KEYSTORE_PASS
|
||||||
GOOGLE_KEYSTORE_CONF:
|
GOOGLE_KEYSTORE_PASS:
|
||||||
from_secret: GOOGLE_KEYSTORE_CONF
|
from_secret: GOOGLE_KEYSTORE_PASS
|
||||||
|
|
||||||
# - name: Sign Android Release Artifact (.APK) for Standalone Use
|
# - name: Sign Android Release Artifact (.APK) for Standalone Use
|
||||||
# commands:
|
# commands:
|
||||||
|
|
4
android/key.properties
Normal file
4
android/key.properties
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
storePassword=changeme
|
||||||
|
keyPassword=changeme
|
||||||
|
keyAlias=google
|
||||||
|
storeFile=/tmp/src/test-store
|
4
ci.py
4
ci.py
|
@ -27,7 +27,7 @@ def podman_offline(dir, *args):
|
||||||
"-v", f"{HOST_HOME}/google-keystore:{CONTAINER_HOME}/google-keystore",
|
"-v", f"{HOST_HOME}/google-keystore:{CONTAINER_HOME}/google-keystore",
|
||||||
"--env", "FDROID_KEYSTORE_PASS=" + os.environ.get('FDROID_KEYSTORE_PASS'),
|
"--env", "FDROID_KEYSTORE_PASS=" + os.environ.get('FDROID_KEYSTORE_PASS'),
|
||||||
"--env", "STANDALONE_KEYSTORE_PASS=" + os.environ.get('STANDALONE_KEYSTORE_PASS'),
|
"--env", "STANDALONE_KEYSTORE_PASS=" + os.environ.get('STANDALONE_KEYSTORE_PASS'),
|
||||||
"--env", "GOOGLE_KEYSTORE_CONF=" + os.environ.get('GOOGLE_KEYSTORE_CONF'),
|
"--env", "GOOGLE_KEYSTORE_PASS=" + os.environ.get('GOOGLE_KEYSTORE_PASS'),
|
||||||
"--user", os.getuid().__str__() + ":" + os.getgid().__str__(), "--userns=keep-id",
|
"--user", os.getuid().__str__() + ":" + os.getgid().__str__(), "--userns=keep-id",
|
||||||
CONTAINER_IMAGE, "bash", "-c", ' '.join(args)
|
CONTAINER_IMAGE, "bash", "-c", ' '.join(args)
|
||||||
], check=True)
|
], check=True)
|
||||||
|
@ -52,7 +52,7 @@ def build_apk():
|
||||||
"&& flutter build apk --flavor production")
|
"&& flutter build apk --flavor production")
|
||||||
def build_bundle():
|
def build_bundle():
|
||||||
podman_offline(f"{CONTAINER_HOME}/src", "chown -R $(id -u):$(id -g) /tmp/gradle /tmp/flutter_pub_cache",
|
podman_offline(f"{CONTAINER_HOME}/src", "chown -R $(id -u):$(id -g) /tmp/gradle /tmp/flutter_pub_cache",
|
||||||
"&& echo $GOOGLE_KEYSTORE_CONF > android/key.properties",
|
"&& sed -i s/changeme/$GOOGLE_KEYSTORE_PASS/ android/key.properties",
|
||||||
"&& flutter pub get --offline",
|
"&& flutter pub get --offline",
|
||||||
"&& flutter build appbundle --flavor production")
|
"&& flutter build appbundle --flavor production")
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue