File tree Expand file tree Collapse file tree 2 files changed +18
-8
lines changed
Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -50,8 +50,9 @@ function getTmpDir() {
5050 fs . accessSync ( "/tmp" , fs . constants . R_OK | fs . constants . W_OK ) ;
5151 return "/tmp" ;
5252 } catch {
53- console . error ( "Error: No usable temporary directory found (TMPDIR or /tmp not accessible)." ) ;
54- process . exit ( 1 ) ;
53+ console . log ( "Error: No usable temporary directory found (TMPDIR or /tmp not accessible)." ) ;
54+ return null ;
55+ // process.exit(1);
5556 }
5657}
5758
@@ -78,8 +79,12 @@ function patchTargetSdkVersion() {
7879 api = "28" ;
7980 }
8081 } else {
81- console . error ( `${ getTmpDir ( ) } /fdroid.bool not found` ) ;
82- process . exit ( 1 ) ;
82+ console . warn ( "---------------------------------------------------------------------------------\n\n\n\n" ) ;
83+ console . warn ( `⚠️ ${ getTmpDir ( ) } /fdroid.bool not found` ) ;
84+ console . warn ( "⚠️ Fdroid flavour will be built" ) ;
85+ api = "28" ;
86+ console . warn ( "\n\n\n\n---------------------------------------------------------------------------------" ) ;
87+ //process.exit(1);
8388 }
8489
8590 content = content . replace ( sdkRegex , 'targetSdkVersion ' + api ) ;
Original file line number Diff line number Diff line change @@ -35,18 +35,23 @@ if [ -n "$TMPDIR" ] && [ -r "$TMPDIR" ] && [ -w "$TMPDIR" ]; then
3535elif [ -r " /tmp" ] && [ -w " /tmp" ]; then
3636 tmpdir=" /tmp"
3737else
38- echo " Error : No usable temporary directory found (TMPDIR or /tmp not accessible)." >&2
39- exit 1
38+ echo " Warning : No usable temporary directory found (TMPDIR or /tmp not accessible). Skipping fdroid.bool file ." >&2
39+ tmpdir= " "
4040fi
4141
4242if [[ " $fdroidFlag " == " fdroid" ]]; then
43- echo " true" > " $tmpdir /fdroid.bool"
43+ if [ -n " $tmpdir " ]; then
44+ echo " true" > " $tmpdir /fdroid.bool"
45+ fi
4446 cordova plugin remove com.foxdebug.acode.rk.exec.proot
4547else
46- echo " false" > " $tmpdir /fdroid.bool"
48+ if [ -n " $tmpdir " ]; then
49+ echo " false" > " $tmpdir /fdroid.bool"
50+ fi
4751 cordova plugin add src/plugins/proot/
4852fi
4953
54+
5055# Normalize mode values
5156if [ " $mode " = " p" ] || [ " $mode " = " prod" ]
5257then
You can’t perform that action at this time.
0 commit comments