From 2f370dc5b9beabff3b1fae956869f608e47caf4c Mon Sep 17 00:00:00 2001 From: Waldemar Tomme Date: Mon, 20 Nov 2023 09:10:28 +0100 Subject: [PATCH] Add scripts --- .gitignore | 1 + build.sh | 7 +++++++ pmos.code-workspace | 20 ++++++++++++++++++++ push.sh | 3 +++ update-checksums.sh | 6 ++++++ 5 files changed, 37 insertions(+) create mode 100644 .gitignore create mode 100755 build.sh create mode 100644 pmos.code-workspace create mode 100755 push.sh create mode 100755 update-checksums.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..82520ca --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/tmp/ diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..44e60be --- /dev/null +++ b/build.sh @@ -0,0 +1,7 @@ +#!/bin/bash -xe + +pmbootstrap install \ + --password pw \ + --android-recovery-zip --recovery-install-partition data \ + +pmbootstrap export diff --git a/pmos.code-workspace b/pmos.code-workspace new file mode 100644 index 0000000..3e9e458 --- /dev/null +++ b/pmos.code-workspace @@ -0,0 +1,20 @@ +{ + "folders": [ + { + "path": "." + }, + { + "path": "../../.local/var/pmbootstrap/cache_git/pmaports/device/testing/device-samsung-a7y18lte" + }, + { + "path": "../../.local/var/pmbootstrap/cache_git/pmaports/device/testing/linux-samsung-a7y18lte" + }, + { + "path": "../../.local/var/pmbootstrap/cache_git/pmaports/device/testing/firmware-samsung-universal7885" + }, + { + "path": "../../.local/var/pmbootstrap/cache_git/pmaports/device/testing/firmware-samsung-a7y18lte" + } + ], + "settings": {} +} diff --git a/push.sh b/push.sh new file mode 100755 index 0000000..6d3d3a1 --- /dev/null +++ b/push.sh @@ -0,0 +1,3 @@ +#!/bin/bash -xe + +adb push /tmp/postmarketOS-export/pmos-samsung-a7y18lte.zip /external_sdcard/pmos-samsung-a7y18lte.zip diff --git a/update-checksums.sh b/update-checksums.sh new file mode 100755 index 0000000..88f75ff --- /dev/null +++ b/update-checksums.sh @@ -0,0 +1,6 @@ +#!/bin/bash -xe + +pmbootstrap checksum \ + device-samsung-a7y18lte \ + firmware-samsung-a7y18lte \ + linux-samsung-a7y18lte