Commit Graph
100 Commits
Author SHA1 Message Date
Antonin Décimo 4f26c0844b Remove --version flag, fix #61 2019-02-09 17:39:49 +01:00
Antonin Décimo 49bad4aa01 fs.chmod was removed in LuaRocks 3. Fix #63
Thanks to @drmargarido for the bug report and fixes.
2019-02-08 21:36:07 +01:00
Antonin Décimo 9bb41928fa Fix spelling mistake 2019-01-24 10:43:27 +01:00
Antonin Décimo d142597ba1 Update README 2018-12-05 20:15:51 +01:00
Antonin Décimo d979bd38f6 Version 2.0.9 2018-12-05 19:58:42 +01:00
Antonin Décimo 38f569a92b Use rucikir/lua-zip 2018-12-05 19:53:47 +01:00
Antonin Décimo 3a493e1863 Update to LuaRocks 3 2018-12-05 19:18:07 +01:00
Antonin Décimo f0198b1323 Version 2.0.8 2018-11-27 20:53:14 +01:00
Antonin Décimo b2cc08f5df Update default LÖVE version to 11.2 2018-11-27 20:49:44 +01:00
Antonin Décimo e9d9c2a2b0 Version 2.0.7 2018-11-24 23:45:15 +01:00
Antonin Décimo 48dc4a9c60 Fix my broken english. Thanks @Phoenixton! 2018-04-26 22:48:33 +02:00
Antonin Décimo 6a9c057f0a Version 2.0.6 2018-04-23 14:23:30 +02:00
Antonin Décimo 8565630963 Add note about lua-zip fork 2018-04-23 13:31:13 +02:00
Antonin Décimo 0223b0f4df Update copyright notice 2018-04-20 22:38:31 +02:00
Antonin Décimo b1c0d73736 Expand Travis test matrix 2018-04-20 22:19:51 +02:00
Antonin Décimo 72ee056eea Use my fork of lua-zip ("misterda/lua-libzip") to support Lua 5.3 2018-04-20 22:12:56 +02:00
Antonin Décimo 28380122f6 Use LÖVE new versionning scheme. Drop semver dependency. #53 2018-04-20 19:49:26 +02:00
Antonin Décimo 621d1da327 Version 2.0.5 2018-04-03 14:07:05 +02:00
Antonin Décimo 1949ef9dd4 Update default LÖVE version to 11.0.0 2018-04-03 13:53:35 +02:00
Antonin Décimo 8f29ac1158 Version 2.0.4 2017-05-19 19:16:12 +02:00
Antonin Décimo e6f8f7386a Update default LÖVE version to 0.10.2 2016-11-01 16:34:57 +01:00
Antonin Décimo 815ec87f80 Test every branch except legacy bash 2016-05-28 11:52:19 +02:00
Antonin Décimo e4262b0fbe Remove unusued tests 2016-05-28 01:07:26 +02:00
Antonin Décimo 0b22cd309f Version 2.0.3 2016-05-28 01:01:24 +02:00
Antonin Décimo 65a981bdfc Version 2.0.2 2016-02-14 16:51:28 +01:00
Antonin Décimo e443881526 Update default LÖVE version to 0.10.1 2016-02-14 16:51:20 +01:00
Antonin Décimo 003fe38191 Fix README 2016-02-06 15:03:13 +01:00
Antonin Décimo ef3e82eedd Version 2.0.1 2016-02-06 13:29:32 +01:00
Antonin Décimo 6d8cde0716 Add framework for testing 2016-02-06 13:16:29 +01:00
Antonin Décimo be84086b1d Mark the debian main script as executable 2016-02-02 00:55:58 +01:00
Antonin Décimo 877e5b4566 Fix rockspec 2016-01-22 01:29:54 +01:00
Antonin Décimo 3fb40c9099 Version 2.0.0 2016-01-22 00:51:29 +01:00
Antonin Décimo d639fcbf6d Add command-line interface 2016-01-22 00:48:46 +01:00
Antonin Décimo 873934e526 Rewrite in Lua with LuaRocks 2016-01-22 00:48:37 +01:00
Antonin Décimo 48c3bd657c Fixed all bugs 2016-01-21 19:32:40 +01:00
Antonin Décimo b3a3d238d0 Bump LICENSE year 2016-01-21 19:32:40 +01:00
Antonin Décimo d99fc51c06 Use LÖVE 0.10.0 by default 2015-12-22 23:33:36 +01:00
Antonin Décimo 6d1e325491 Use MIT license, close #28 2015-12-14 14:56:18 +01:00
Antonin Décimo f43a111c81 Fix #26, regression in 86a936f 2015-11-17 20:09:07 +01:00
Antonin Décimo 86a936fbf0 Declared readonly constants, fix local variables
Declaration and assignment must be separate statements when the
assignment value is provided by a command substitution;
as the 'local' builtin does not propagate the exit code from
the command substitution. #24
2015-09-28 10:29:49 +02:00
Antonin Décimo c1688d281d Add main function. Update Makefile accordingly. 2015-09-28 09:55:20 +02:00
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 1a70aa54a6 Add dependency check 2015-08-30 15:51:07 +02:00
Antonin Décimo b5c73fef0f Doc cleanup 2015-08-30 15:34:24 +02:00
Antonin Décimo e20238a6ac Bug fixes on OS X, add GNU readlink as deps #20
Makefile:
- short help was not properly created

love-release.sh:
- script aborts if GNU getopt is not found
- add GNU readlink as dependency, will check for greadlink too

README.md:
- add GNU readlink as dependency
2015-07-12 16:20:11 +02:00
Antonin Décimo ae3b742c45 Replace realpath by readlink #21 2015-07-09 11:45:03 +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 a078106148 Compatibility GNU/BSD, fix #20
Changed `sed -r` to `sed -E`. OSX does not support `sed -r` while
FreeBSD does. GNU sed seems to support `sed -E` even if it is not
in the man page.
Changed install command.
2015-07-06 12:19:33 +02:00
Antonin Décimo d4291daf92 Clean documentation, add dependencies 2015-06-26 19:35:13 +02:00
Antonin Décimo 3034c43cc0 Rewrite example.sh to modules.md 2015-06-26 19:34:17 +02:00
Antonin Décimo 0e9c8b624d Add modules options in short help 2015-06-26 19:21:27 +02:00
Antonin Décimo b968ddbc82 Stop if there is no main.lua file 2015-06-26 19:21:27 +02:00
Antonin Décimo 55e7685fa1 Rewrite Android module 2015-06-26 19:21:27 +02:00
Antonin Décimo d0d40950d4 Rewrite Mac OS X module 2015-06-26 19:21:27 +02:00
Antonin Décimo 4cda1607e9 Reimplement option to exclude files 2015-06-26 19:21:27 +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 9ebfe82e6b Rewrite Debian module 2015-06-26 18:42:09 +02:00
Antonin Décimo ba6537c7ae Bug fixes
- dot files are now properly excluded when zipping
- add PROJECT_DIR variable
- add new deps exit in module_exit
- an optional error message can be passed to module_exit
- escaped characters will now be interpreted in error messages
- fix in compare_version
2015-06-26 15:42:59 +02:00
Antonin Décimo 1d6443044f Little fix in read_config 2015-06-24 01:50:47 +02:00
Antonin Décimo 2ce23ea032 Fix init_module and default module 2015-06-24 01:20:45 +02:00
Antonin Décimo 2dc8fd07d5 Update bash completion 2015-06-24 00:23:03 +02:00
Antonin Décimo 979ddf5719 Options can be prefixed for a specific module
Options can now be prefixed to be used only for the module the prefix
corresponds to. For example `--author` will set the author's name for
the whole project, but `--Wauthor` will set it for Windows only and
`--Dauthor` for Debian only.

If a module requires new options, they will be automatically prefixed at
compilation.
Most of the modules options have been renamed for consistency.

The `read_option` function was added to parse the default options.
It can use a prefix to parse the options for a module.

Each module now has a specific directory in the cache to allow
per-module cache cleaning.
2015-06-23 22:32:26 +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 3b48234432 Install example.sh 2015-06-16 21:12:31 +02:00
Antonin Décimo 6eb5c998f2 Move example, remove assets, add gitignore 2015-06-16 17:44:48 +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 6e58597f36 Small improvements, changed x86 to x32 2015-06-16 13:35:17 +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 06d5369877 Change windows options 2015-06-13 17:22:11 +02:00
Antonin Décimo 9830124a31 Include scripts/love.sh into main script 2015-06-13 14:16:02 +02:00
Antonin Décimo ea90092ead Fix typos 2015-06-13 01:27:12 +02:00
Antonin Décimo 9dd8d37d3d Changes in build/install, config, modules, cli 2015-06-13 01:12:04 +02:00
Antonin Décimo 4b82ba100c Add get_user_confirmation function 2014-10-11 10:19:15 +02:00
Antonin Décimo c04739df10 Better installation process
- ask user confirmation
- detects if love-release should be installed system-wide or in user
  space
- moved completion form /etc/bash_completion.d/love-release to
  /usr/share/bash-completion/completions/love-release
2014-10-04 09:56:57 +02:00
Antonin Décimo 691b38767a Clarify windows installation doc 2014-09-28 00:41:15 +02:00
Antonin Décimo 128a1a6793 Add Windows installer with Inno Setup ! 2014-09-27 17:32:07 +02:00
Antonin Décimo 21c6e2c22a MacOS app respects symlinks, also completes files 2014-09-24 23:34:46 +02:00
Antonin Décimo 33e2a439df Fix bugs with icon directory argument 2014-09-21 12:51:09 +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 835257d805 OUYA icons, #3 2014-09-20 22:32:33 +02:00
Antonin Décimo 02f1738297 Android pkg now supports icons through --apk-icon. #3 2014-09-20 00:28:03 +02:00
Antonin Décimo de470cb930 Cleaned up Debian script 2014-09-18 22:04:00 +02:00
Antonin Décimo 5eab2d841d Debian pkg now supports icons through --deb-icon. #3 2014-09-18 21:55:47 +02:00
Antonin Décimo 32a6ffe060 Fix -x option when passing directories. Better zip 2014-09-18 21:24:22 +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 deff81117d Now downloads dependencies at installation time 2014-09-06 14:01:33 +02:00
Antonin Décimo c076e59a1a Bug fixes
- when arguments containing spaces where passed, following options would
  be ignored
- love-release was not marked as executable
- fix typos
2014-09-06 13:59:39 +02:00
Antonin Décimo dccf390820 Add tab-completion support 2014-09-04 11:55:21 +02:00
Antonin Décimo 465030dbeb Little fixes. Description and Homepage now global. 2014-09-04 10:37:59 +02:00
Antonin Décimo bcdda5ac7e Fix issues with sed. Fix typo in github url. 2014-08-27 22:33:03 +02:00
Rucikir b708ae13bb Fix typo 2014-08-24 11:29:43 +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 fc063815fb Add -x option to exclude files. #8 #11 2014-08-23 11:10:58 +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 83a5f111b7 Moved back -g option to -a 2014-08-20 23:54:25 +02:00
Antonin Décimo 9a19a87a08 Add modules documentation. Possible workaround for #5 2014-08-20 23:53:34 +02:00
Antonin Décimo 66d72e7619 Forgot to add -n and -r options again... 2014-08-20 11:03:54 +02:00