Commit Graph

18 Commits

Author SHA1 Message Date
Antonin Décimo
8acc70afd4 Fix for #23, but Windows icons doesn't work yet. 2015-09-06 19:57:31 +02:00
Antonin Décimo
661f041216 Changed --W arch to -W arch, fix win not executing 2015-07-09 11:29:51 +02:00
Antonin Décimo
48bda5fbc1 Rewrite Windows module
TODO: check if there is no problems with icons and installer
2015-06-26 19:19:53 +02:00
Antonin Décimo
63bb8cc807 Add new options, rename some
Modules options have been capitalized.
"project's name" was renamed to "project's title".
Many options to set global variables were added.
"--clean" option was reimplemented.
2015-06-23 17:41:01 +02:00
Antonin Décimo
6302efed97 Options & file args support with GNU getopt
Short options are stored in the OPTIONS variable, and longs in
LONG_OPTIONS. Modules scripts need to add theses to be able to use
options. Theses lines are then parsed by sed at make-time and added to
the corresponding variable in the main script.

init_module now requires a third argument corresponding to the option
that will trigger the execution of the module.

Files can also be passed by argument to zip. They are stored in the
FILES array.

check_deps:
    - add dependency check for GNU getopt,
    - echo errors to stderr

gen_version now returns 0 on success and 1 on failure.

Add short_help function. Shown if -h options is passed, or on parsing
options failure.

exit_module:
    - add 'options' exit value if there is an error while parsing the
      options,
    - add 'version' exit value if there is an error while generating
      LÖVE version from user input.

dump_var shows files to zip.

Script will now exit if it has not been embedded nor installed.
Fix bugs with default module.
2015-06-22 22:54:49 +02:00
Antonin Décimo
16387f4f7e Merge execute_module in init_module 2015-06-16 17:39:46 +02:00
Antonin Décimo
2c588118af Modules and functions have return values
Modules can now use return values with the exit_module function.
Some return values are predefined, use them by passing special string
to the function.

Most of the functions also switched from a echo "true" to return 0
scheme, which means that every test involving theses functions was
rewritten.

No more need for the reset_vars function, as modules are run in
subshells, thus providing a new scope level.

The case when no modules is specified is better handled, a LÖVE file is
created by default.
2015-06-16 17:38:44 +02:00
Antonin Décimo
72ada933f1 Improves modules sourcing
A module should always begin with a test to `execute_module` to see if
it should be executed. As modules are always sourced
(even when embedded), a simple `return` will stop the subscript.

Modules are executed in a subscript, so the global space will not be
polluted, and will also be reset after the execution of the module.

This commit also solves some bugs in Makefile and lua parser.
2015-06-16 13:33:43 +02:00
Antonin Décimo
128a1a6793 Add Windows installer with Inno Setup ! 2014-09-27 17:32:07 +02:00
Antonin Décimo
3ad8269ac9 Bug fixes, close #15
- rename --activity to --apk-activiy,
- support absolute or relative path for icon directory argument,
- rename love-LOVE_VERSION-winXX to PROJECT_NAME-winXX inside windows
  release zip.
2014-09-21 12:08:59 +02:00
Antonin Décimo
2b172f4f23 Should fix #6. Thanks to @nunodonato for reporting this 2014-09-17 13:37:44 +02:00
Antonin Décimo
967a483355 Register options that takes files as argument to exclude these files for every build 2014-08-24 11:12:57 +02:00
Antonin Décimo
fd4e0195a7 Conflicting options are now prefixed #8 2014-08-23 11:51:53 +02:00
Antonin Décimo
5bbf17401a Add configuration. See #5 #8.
What's new:
- --config flag to pass a INI config file to parse. See config.ini.
- Updated the modules scripts for configuration. Now needs to unset
  variables passed by CLI or config.
- Fix release directory that was added in love file (maybe).
- Properly escapes sed arguments.
- chmod +x to getopt.sh and read_ini.sh
- Fix #12
2014-08-22 14:07:44 +02:00
Antonin Décimo
d0c14011c6 Add --filesync option. Love file stays in release dir 2014-08-20 10:28:07 +02:00
Antonin Décimo
a3ac751f9e Add zip compression level option. Fix exit_module function 2014-08-20 10:15:40 +02:00
Antonin Décimo
3c1af29321 Various little fixes 2014-08-19 17:15:29 +02:00
Antonin Décimo
6d641c951c Add Windows module 2014-08-19 12:35:58 +02:00