Code Monkey home page Code Monkey logo

Comments (8)

toomanylogins avatar toomanylogins commented on June 18, 2024 1

Thanks for reply but I must be misunderstandind something.

  1. I have downloaded zip and copied to Users\Paul\Documents\macos-installer-builder-master\macOS-x64\
  2. Copied my application files to Users\Paul\Documents\macos-installer-builder-master\macOS-x64\application
  3. 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.

toomanylogins avatar toomanylogins commented on June 18, 2024 1

Thanks.

from macos-installer-builder.

KosalaHerath avatar KosalaHerath commented on June 18, 2024

It is the path to the repository home.

from macos-installer-builder.

KosalaHerath avatar KosalaHerath commented on June 18, 2024

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.

Screen Shot 2021-06-01 at 12 33 43 am

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.

toomanylogins avatar toomanylogins commented on June 18, 2024

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.

toomanylogins avatar toomanylogins commented on June 18, 2024

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.

toomanylogins avatar toomanylogins commented on June 18, 2024

Fixed. You have to cd to the folder containing the .sh script before running bash build-macos-x64.sh

from macos-installer-builder.

KosalaHerath avatar KosalaHerath commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.