Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

How do you make create_project.bat run on a Mac ?
Started by davporte Nov 28 2019 01:33 AM

1 reply to this topic
plugin build
[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

davporte

[GLOBAL: userInfoPane.html]
davporte
  • Observer

  • 28 posts
  • Corona SDK

-- IGNORE answered my own question --

 

Trying to create a plugin using the tools provided by corona at:

 

https://github.com/coronalabs/plugins-template-library-lua

 

Crashes on Terminal on a Mac with great ease.

 

    Mac-Pro:LUA Plugin Attempt davporte$ ./create_project.bat ../Built_Project/ PROJECT

    ./create_project.bat: line 1: @echo: command not found

    ./create_project.bat: line 2: SetLocal: command not found

    : command not foundt: line 3: 

    ./create_project.bat: line 4: REM: command not found

    ./create_project.bat: line 5: REM: command not found

    ./create_project.bat: line 6: REM: command not found

    : command not foundt: line 7: 

    ./create_project.bat: line 24: syntax error near unexpected token `('

    '/create_project.bat: line 24: `if exist "%dst%" (

 

Tried removing REM, SetLocal lines and @echo from script but line 24 dies every time. My Linux is a bit rusty, so any help on how to change this file so it will run on Mac would be great. Maybe is $PATH, I just don't know ?

 

    echo $PATH

    /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin



[TOPIC: post.html]
#2

davporte

[GLOBAL: userInfoPane.html]
davporte
  • Observer

  • 28 posts
  • Corona SDK

Ok yes i'm an idiot that's the windows version of the sh script !




[topic_controls]
[/topic_controls]

Also tagged with one or more of these keywords: plugin, build