This repository was archived by the owner on Jul 9, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
Empty file list should raise and error #62
Copy link
Copy link
Open
Labels
Description
This is a somewhat following issue #39 and PR #42.
The way excludeFileList works currently will somewhat fail on {''} as it is an alternative to '*' in .gitignore-like files. It excludes all files as love-release performs substring search (file:find) on a file name to exclude it and an empty string will be found in any string. Instead of erroring on empty file list, love-release fails on Mac and/or Windows with the following cryptic error message:
../env/bin/love-release -W
{
title = 'Title',
package = 'executable',
loveVersion = '11.1',
version = '0.0.1',
author = 'Author Name',
email = 'invalid@example.com',
description = nil,
homepage = 'URL',
identifier = 'executable',
excludeFileList = { ''} ,
compile = false,
projectDirectory = '/game/',
releaseDirectory = '/game/releases',
}
/usr/bin/lua5.1: ...e/env/share/lua/5.1/love-release/scripts/windows.lua:46: executable.love: No such file or directory
stack traceback:
[C]: in function 'assert'
...e/env/share/lua/5.1/love-release/scripts/windows.lua:46: in function 'release'
...e/env/share/lua/5.1/love-release/scripts/windows.lua:80: in function <...e/env/share/lua/5.1/love-release/scripts/windows.lua:75>
(tail call): ?
...a-love/env/share/lua/5.1/love-release/pipes/args.lua:117: in function 'args'
...ocks/rocks-5.1/love-release/2.0.9-1/bin/love-release:11: in main chunk
[C]: ?
Reactions are currently unavailable