copy folder on standalone: bizzare things with LC8
Posted: Mon Sep 19, 2016 10:26 am
hi all.
experts and people who loves paranormality needed here.
i have a stack, quite old (first release was made with LC 6 or even runRev 5.5, can't remember).
i was recompiling it with LC8.1, for iOS 10 compatibility.
it has a folder included as "non-stack files", which contains a single file.
when i save it as stand alone here's the result:
for Android: all ok as expected
into iOS (and MacOS, Windows and even Linux) the folder included into the built apps contains the expected file PLUS another file whose name is exactly the full path to the original file on my machine (yes, with slashes into the name!).
example:
"mystack.livecode" with embedded folder "myfiles" with 1 single file "myfile.sqlite"
after having compiled it, in stand alone "myfiles" folder i can see:
"myfile.sqlite", which is correctly a 900 KB file
AND
"/Users/remu/Documents/Project/Apps/test_app/myfiles/myfile.sqlite", a 1 KB file, almost empty.
bizzare? ah! wait, read more below…
if i open that unwanted file with a hex editor, along lot of zeros i can read the path to the app i used years ago to edit it ("Applications/-DataBase/SQLite Database Browser 2.0 b1.app"). a no longer existent path, btw…
!!!
things to know:
- if i put other files into "myfiles", the stand alone "myfiles" folder contains correct files as expected, except for THAT specific sqlite file, which comes with its ghost brother.
- even if i put other sqlite files in "myfiles" folder, THAT specific sqlite file is the ONLY one with this anomaly
- if i create a brand new empty stack, i embed the "myfiles" folder and i build the SA, same result: that "path-to-original" file is created too
- if i use LC7 to open a backUp copy of my original stack (note: which was updated during the years 'till LC7 and it never gave me problems) and i build the SA, the SA embedded folder contains the correct file only, as expected.
therefore:
- this is a quite bizzare issue
AND
- it is something related to that specific old sqlite file
AND
- it is something related to the way LC8 builds the stand alone
now, the difficult part:
any hint?
:-/
Android: iOS MacOS
experts and people who loves paranormality needed here.
i have a stack, quite old (first release was made with LC 6 or even runRev 5.5, can't remember).
i was recompiling it with LC8.1, for iOS 10 compatibility.
it has a folder included as "non-stack files", which contains a single file.
when i save it as stand alone here's the result:
for Android: all ok as expected
into iOS (and MacOS, Windows and even Linux) the folder included into the built apps contains the expected file PLUS another file whose name is exactly the full path to the original file on my machine (yes, with slashes into the name!).
example:
"mystack.livecode" with embedded folder "myfiles" with 1 single file "myfile.sqlite"
after having compiled it, in stand alone "myfiles" folder i can see:
"myfile.sqlite", which is correctly a 900 KB file
AND
"/Users/remu/Documents/Project/Apps/test_app/myfiles/myfile.sqlite", a 1 KB file, almost empty.
bizzare? ah! wait, read more below…
if i open that unwanted file with a hex editor, along lot of zeros i can read the path to the app i used years ago to edit it ("Applications/-DataBase/SQLite Database Browser 2.0 b1.app"). a no longer existent path, btw…
!!!
things to know:
- if i put other files into "myfiles", the stand alone "myfiles" folder contains correct files as expected, except for THAT specific sqlite file, which comes with its ghost brother.
- even if i put other sqlite files in "myfiles" folder, THAT specific sqlite file is the ONLY one with this anomaly
- if i create a brand new empty stack, i embed the "myfiles" folder and i build the SA, same result: that "path-to-original" file is created too
- if i use LC7 to open a backUp copy of my original stack (note: which was updated during the years 'till LC7 and it never gave me problems) and i build the SA, the SA embedded folder contains the correct file only, as expected.
therefore:
- this is a quite bizzare issue
AND
- it is something related to that specific old sqlite file
AND
- it is something related to the way LC8 builds the stand alone
now, the difficult part:
any hint?
:-/
Android: iOS MacOS