From 3b890c0bf674da7dcd5fe8a77489f42bcfef12d3 Mon Sep 17 00:00:00 2001 From: farfromrefug Date: Wed, 16 Oct 2024 18:06:37 +0200 Subject: [PATCH] chore: cli --- package.json | 1 + scripts/ci.prepare.sh | 40 +++++++++++++++++++++++++++++++++++++++- tools | 2 +- yarn.lock | 22 +++++++++++++++------- 4 files changed, 56 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 36478a66..e053dd39 100644 --- a/package.json +++ b/package.json @@ -80,6 +80,7 @@ "@nativescript-community/ui-pager": "14.1.27", "@nativescript-community/ui-pager-indicator": "14.1.27", "@nativescript-community/ui-popover": "0.1.19", + "@nativescript-community/ui-share-file": "1.3.3", "@nativescript-community/ui-svg": "0.2.6", "@nativescript-community/ui-webview": "1.5.0", "@nativescript-community/ui-zoomimage": "4.5.3", diff --git a/scripts/ci.prepare.sh b/scripts/ci.prepare.sh index f81b4590..509cee1a 100644 --- a/scripts/ci.prepare.sh +++ b/scripts/ci.prepare.sh @@ -1,3 +1,41 @@ #!/usr/bin/env bash -echo "Values of all the arguments: $@" \ No newline at end of file +POSITIONAL_ARGS=() + +while [[ $# -gt 0 ]]; do + case $1 in + -p|--platform) + PLATFORM="$2" + shift # past argument + shift # past value + ;; + -v|--version) + VERSION="$2" + shift # past argument + shift # past value + ;; + -f|--flavor) + FLAVOR=YES + shift # past argument + shift # past value + ;; + -*|--*) + echo "Unknown option $1" + exit 1 + ;; + *) + POSITIONAL_ARGS+=("$1") # save positional arg + shift # past argument + ;; + esac +done + +set -- "${POSITIONAL_ARGS[@]}" # restore positional parameters + +echo "PLATFORM = ${PLATFORM}" +echo "VERSION = ${VERSION}" +echo "FLAVOR = ${FLAVOR}" +echo "FLAVOR = $(dirname $0)" + +wget https://github.com/Akylas/OSS-DocumentScanner/releases/download/dev_resources/${PLATFORM}.zip +unzip ${PLATFORM}.zip \ No newline at end of file diff --git a/tools b/tools index c5c7dc42..bf89f60c 160000 --- a/tools +++ b/tools @@ -1 +1 @@ -Subproject commit c5c7dc4299e9a959dce27641860f072ff1c9d16f +Subproject commit bf89f60c01d116724a5321dbb406fb29876e436a diff --git a/yarn.lock b/yarn.lock index 48029371..16e746a6 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12,16 +12,16 @@ __metadata: languageName: node linkType: hard -"@akylas/kiss-orm@npm:2.1.9": - version: 2.1.9 - resolution: "@akylas/kiss-orm@npm:2.1.9" +"@akylas/kiss-orm@npm:2.1.11": + version: 2.1.11 + resolution: "@akylas/kiss-orm@npm:2.1.11" peerDependencies: mysql: ^2.18.1 pg: ^8.5.1 pg-format: ^1.0.4 pg-pool: ^3.2.2 sqlite3: ^5.0.0 - checksum: 10/be419156c79110e0675bee25cf2df29ba4030f6170817f668c3cb7bd41457e1f94b52b4c9c90f40bf15898c5b5f4c9230995531d6a9c34a07a69a24376b54a0d + checksum: 10/3f7d1a507b1845ca80bb6f9eca648036ff666c885f5f00bb6ac098d96913f1739171e6b5a65dfedbe77375f4c05a5a762566412717870a9de942a39faf5c3647 languageName: node linkType: hard @@ -34,7 +34,7 @@ __metadata: "@akylas/nativescript-app-tools@file:tools::locator=root-workspace-0b6124%40workspace%3A.": version: 1.0.0 - resolution: "@akylas/nativescript-app-tools@file:tools#tools::hash=87278d&locator=root-workspace-0b6124%40workspace%3A." + resolution: "@akylas/nativescript-app-tools@file:tools#tools::hash=6766aa&locator=root-workspace-0b6124%40workspace%3A." dependencies: "@dotenvx/dotenvx": "npm:1.17.0" "@nativescript-community/fontmin": "npm:0.9.11" @@ -87,7 +87,7 @@ __metadata: typescript: "npm:5.6.3" typescript-eslint: "npm:^8.8.1" webpack-bundle-analyzer: "npm:^4.10.2" - checksum: 10/396ceda443f15dafc58156564a440e1604761f3c3d5d76ed152990c6ac5b83a208260e70b1f548f9de9d826ff8a51b73600351c2d4cc86681ef1031359cab641 + checksum: 10/68d81788594948f2d066faf658ac84ccbc8ad03384c0afe829f5cea85daa8d219d04bcaa7606c3c0f0bd4eb76f6284f8d0de89dc16cb6652babea0ca16b3b8ba languageName: node linkType: hard @@ -1571,6 +1571,13 @@ __metadata: languageName: node linkType: hard +"@nativescript-community/ui-share-file@npm:1.3.3": + version: 1.3.3 + resolution: "@nativescript-community/ui-share-file@npm:1.3.3" + checksum: 10/b4e512f5a9e8681dc35dfd683aa76e66cae8298c037468c06ce3697ee5ab64e1adb181659e8798bb4b12870631fbabc09958f1bf959c714dcaebe739da9bb3aa + languageName: node + linkType: hard + "@nativescript-community/ui-svg@npm:0.2.6": version: 0.2.6 resolution: "@nativescript-community/ui-svg@npm:0.2.6" @@ -11094,7 +11101,7 @@ __metadata: version: 0.0.0-use.local resolution: "root-workspace-0b6124@workspace:." dependencies: - "@akylas/kiss-orm": "npm:2.1.9" + "@akylas/kiss-orm": "npm:2.1.11" "@akylas/nativescript": "npm:8.8.7" "@akylas/nativescript-android-runtime": "npm:8.8.5" "@akylas/nativescript-app-tools": "file:tools" @@ -11143,6 +11150,7 @@ __metadata: "@nativescript-community/ui-pager": "npm:14.1.27" "@nativescript-community/ui-pager-indicator": "npm:14.1.27" "@nativescript-community/ui-popover": "npm:0.1.19" + "@nativescript-community/ui-share-file": "npm:1.3.3" "@nativescript-community/ui-svg": "npm:0.2.6" "@nativescript-community/ui-webview": "npm:1.5.0" "@nativescript-community/ui-zoomimage": "npm:4.5.3"