Comments (8)
Thanks for reply but I must be misunderstandind something.
- I have downloaded zip and copied to Users\Paul\Documents\macos-installer-builder-master\macOS-x64\
- Copied my application files to Users\Paul\Documents\macos-installer-builder-master\macOS-x64\application
- Run bash Users\Paul\Documents\macos-installer-builder-master\macOS-x64\build-macos-x64.sh YouDoCMS 1.0.0
I get error re apache maven missing, Ballerina missing and various target\darwin\scripts etc no such file or directory.
Would appreciate any advice.
Thanks
Paul
from macos-installer-builder.
Thanks.
from macos-installer-builder.
It is the path to the repository home.
from macos-installer-builder.
Hi Paul,
The warnings you got from Maven and Ballerina are pre-requisites that are specialized only for my example application. These requirements are not probably needed for your application and you can just comment the following code block.
#Pre-requisites
command -v mvn -v >/dev/null 2>&1 || {
log_warn "Apache Maven was not found. Please install Maven first."
# exit 1
}
command -v ballerina >/dev/null 2>&1 || {
log_warn "Ballerina was not found. Please install ballerina first."
# exit 1
}
This can be found in the following line.
https://github.com/KosalaHerath/macos-installer-builder/blob/master/macOS-x64/build-macos-x64.sh#L182
However, these warnings will not affect your application and since these are just reminders (which can be ignored in your case), the installer should be generated without any other errors as follows.
Next, I have no idea about your "target\darwin\scripts etc no such file or director" error and if you can provide the log of errors as above you got, I will be able to provide more help on this case.
In addition, to clarify the process, just download and unzip the repository, and then without adding any application files just try to run the 'build-macos-x64.sh' script and check the installer generation works without any errors.
Cheers!
from macos-installer-builder.
Thank you for taking time to reply, I downloaded the zip again. Here is output after unzip to my documents folder on Mac 10.15.
bash /Users/paul/Documents/macos-installer-builder-master/macOS-x64/build-macos-x64.sh YouDoCMS 1.0.0
cat: ./utils/ascii_art.txt: No such file or directory
Application Name : YouDoCMS
Application Version : 1.0.0
[2021-06-01 11:26:52][WARN] Apache Maven was not found. Please install Maven first.
[2021-06-01 11:26:52][WARN] Ballerina was not found. Please install ballerina first.
[2021-06-01 11:26:52][INFO] Installer generating process started.
[2021-06-01 11:26:52][INFO] Cleaning target directory.
cp: darwin: No such file or directory
chmod: target/darwin/scripts: No such file or directory
chmod: target/darwin/Resources: No such file or directory
chmod: target/darwin/Distribution: No such file or directory
sed: target/darwin/scripts/postinstall: No such file or directory
sed: target/darwin/scripts/postinstall: No such file or directory
chmod: target/darwin/scripts/postinstall: No such file or directory
sed: target/darwin/Distribution: No such file or directory
sed: target/darwin/Distribution: No such file or directory
chmod: target/darwin/Distribution: No such file or directory
sed: target/darwin/Resources/.html: No such file or directory
sed: target/darwin/Resources/.html: No such file or directory
chmod: target/darwin/Resources/: No such file or directory
cp: ./application/.: No such file or directory
cp: darwin/Resources/uninstall.sh: No such file or directory
sed: target/darwinpkg/Library/YouDoCMS/1.0.0/uninstall.sh: No such file or directory
sed: target/darwinpkg/Library/YouDoCMS/1.0.0/uninstall.sh: No such file or directory
[2021-06-01 11:26:52][INFO] Application installer generation process started.(3 Steps)
[2021-06-01 11:26:52][INFO] Apllication installer package building started.(1/3)
[2021-06-01 11:26:52][INFO] Application installer product building started.(2/3)
Do you wish to sign the installer (You should have Apple Developer Certificate) [y/N]?
from macos-installer-builder.
Thank you for taking time to reply, I downloaded the zip again. Here is output after unzip to my documents folder on Mac 10.15.
bash /Users/paul/Documents/macos-installer-builder-master/macOS-x64/build-macos-x64.sh YouDoCMS 1.0.0
cat: ./utils/ascii_art.txt: No such file or directory
Application Name : YouDoCMS
Application Version : 1.0.0
[2021-06-01 11:26:52][WARN] Apache Maven was not found. Please install Maven first.
[2021-06-01 11:26:52][WARN] Ballerina was not found. Please install ballerina first.
[2021-06-01 11:26:52][INFO] Installer generating process started.
[2021-06-01 11:26:52][INFO] Cleaning target directory.
cp: darwin: No such file or directory
chmod: target/darwin/scripts: No such file or directory
chmod: target/darwin/Resources: No such file or directory
chmod: target/darwin/Distribution: No such file or directory
sed: target/darwin/scripts/postinstall: No such file or directory
sed: target/darwin/scripts/postinstall: No such file or directory
chmod: target/darwin/scripts/postinstall: No such file or directory
sed: target/darwin/Distribution: No such file or directory
sed: target/darwin/Distribution: No such file or directory
chmod: target/darwin/Distribution: No such file or directory
sed: target/darwin/Resources/.html: No such file or directory
sed: target/darwin/Resources/.html: No such file or directory
chmod: target/darwin/Resources/: No such file or directory
cp: ./application/.: No such file or directory
cp: darwin/Resources/uninstall.sh: No such file or directory
sed: target/darwinpkg/Library/YouDoCMS/1.0.0/uninstall.sh: No such file or directory
sed: target/darwinpkg/Library/YouDoCMS/1.0.0/uninstall.sh: No such file or directory
[2021-06-01 11:26:52][INFO] Application installer generation process started.(3 Steps)
[2021-06-01 11:26:52][INFO] Apllication installer package building started.(1/3)
[2021-06-01 11:26:52][INFO] Application installer product building started.(2/3)
Do you wish to sign the installer (You should have Apple Developer Certificate) [y/N]?
from macos-installer-builder.
Fixed. You have to cd to the folder containing the .sh script before running bash build-macos-x64.sh
from macos-installer-builder.
Hi Paul,
Thank you for mentioning the issue. The issue with the absolute path is fixed with this commit now. Thus now you can run it from anywhere using the absolute path.
Cheers!
from macos-installer-builder.
Related Issues (19)
- Installation of Unix Executable HOT 2
- Where do I even begin to debug? HOT 7
- [Question] how to change application /Library/${product_name}/${version} to other directory? HOT 2
- Picture cannot be shown in conclusion.html HOT 2
- Destination Select shows only one Option "Install for All Users" HOT 2
- Banner image does not display on dark theme (fix included) HOT 1
- Script does not work when in file path with spaces HOT 1
- README image is down HOT 1
- Medium article is behind a pay/login wall HOT 2
- Commands in post install HOT 1
- Product names with spaces not supported HOT 1
- Payload path option HOT 1
- can't create .pkg file in the target directory HOT 3
- Welcome conclusion and Banner broken HOT 1
- Could I create a preinstall script? HOT 3
- [Question] Does it support .app? HOT 6
- Terms of Service step HOT 3
- How to upload a Mac Installer .pkg to the App Store HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from macos-installer-builder.