Closed diuming closed 1 year ago
Hi Tuming,
Basically, this installation is doing copy the content you put in the
@KosalaHerath other files are copied but not the .app one
I have this problem as well... Looks like people have had this issue for years if you check the comment section on the original blog.
Why can a .app not be copied into the applications folder?
same problem? any solution?
I was able to modify it to work with my .app.
You'll need to update the build-macos-x64.sh
script, basically replace the folder location of Library with Applications. Starting at about line 119 or so, remove or comment out the Copy Celery commands:
#Copy cellery product to /Library/Cellery
#mkdir -p "${TARGET_DIRECTORY}"/darwinpkg/Library/${PRODUCT}/${VERSION}
#cp -a "$SCRIPTPATH"/application/.."${TARGET_DIRECTORY}"/darwinpkg/Library/${PRODUCT}/${VERSION}
#chmod -R 755 "${TARGET_DIRECTORY}"/darwinpkg/Library/${PRODUCT}/${VERSION}
and add the following lines:
mkdir -p "${TARGET_DIRECTORY}"/darwinpkg/Applications
cp -a "$SCRIPTPATH"/application/. "${TARGET_DIRECTORY}"/darwinpkg/Applications
You'll probably get some other associated errors about not being able to find the Library folders, but they can generally be ignored, or easily edited.
Since modification has been mentioned, closing the issue.
I put MyApplication.app in application folder and modify postinstall.sh
than run build-macos-x64.sh MyApplication 1.0.0
But, I can't find MyApplication.app in /opt folder