mirror of
https://github.com/TangentFoxy/love-release.git
synced 2025-07-28 11:02:20 +00:00
s/MacOS X/macOS/g
This commit is contained in:
@@ -13,7 +13,7 @@ Available as a [LuaRocks 3][luarocks] [package][package].
|
|||||||
|
|
||||||
## Features
|
## Features
|
||||||
love-release makes your LÖVE game release easier. love-release can
|
love-release makes your LÖVE game release easier. love-release can
|
||||||
create from your sources: Windows executables, MacOS X applications,
|
create from your sources: Windows executables, macOS applications,
|
||||||
Debian packages, and simple LÖVE files.
|
Debian packages, and simple LÖVE files.
|
||||||
|
|
||||||
love-release creates only one LÖVE file per release directory and
|
love-release creates only one LÖVE file per release directory and
|
||||||
@@ -41,7 +41,7 @@ Arguments:
|
|||||||
|
|
||||||
Options:
|
Options:
|
||||||
-D Debian package.
|
-D Debian package.
|
||||||
-M MacOS X application.
|
-M macOS application.
|
||||||
-W [32|64] Windows executable.
|
-W [32|64] Windows executable.
|
||||||
-a <author>, --author <author>
|
-a <author>, --author <author>
|
||||||
Author full name. Required for Debian.
|
Author full name. Required for Debian.
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
package = "love-release"
|
package = "love-release"
|
||||||
version = "scm-3"
|
version = "scm-4"
|
||||||
rockspec_format = "3.0"
|
rockspec_format = "3.0"
|
||||||
source = {
|
source = {
|
||||||
url = "git://github.com/MisterDA/love-release.git",
|
url = "git://github.com/MisterDA/love-release.git",
|
||||||
@@ -26,7 +26,7 @@ build = {
|
|||||||
modules = {
|
modules = {
|
||||||
["love-release.scripts.debian"] = "src/scripts/debian.lua",
|
["love-release.scripts.debian"] = "src/scripts/debian.lua",
|
||||||
["love-release.scripts.love"] = "src/scripts/love.lua",
|
["love-release.scripts.love"] = "src/scripts/love.lua",
|
||||||
["love-release.scripts.macosx"] = "src/scripts/macosx.lua",
|
["love-release.scripts.macos"] = "src/scripts/macos.lua",
|
||||||
["love-release.scripts.windows"] = "src/scripts/windows.lua",
|
["love-release.scripts.windows"] = "src/scripts/windows.lua",
|
||||||
["love-release.pipes.args"] = "src/pipes/args.lua",
|
["love-release.pipes.args"] = "src/pipes/args.lua",
|
||||||
["love-release.pipes.conf"] = "src/pipes/conf.lua",
|
["love-release.pipes.conf"] = "src/pipes/conf.lua",
|
@@ -29,8 +29,8 @@ function Args:initialize()
|
|||||||
|
|
||||||
parser:flag("-D", "Debian package.")
|
parser:flag("-D", "Debian package.")
|
||||||
:target "debian"
|
:target "debian"
|
||||||
parser:flag("-M", "MacOS X application.")
|
parser:flag("-M", "macOS application.")
|
||||||
:target "macosx"
|
:target "macos"
|
||||||
parser:option("-W", "Windows executable.")
|
parser:option("-W", "Windows executable.")
|
||||||
:target "windows"
|
:target "windows"
|
||||||
:args "0-1"
|
:args "0-1"
|
||||||
@@ -93,8 +93,8 @@ function Args:__call(project)
|
|||||||
local script
|
local script
|
||||||
script = require 'love-release.scripts.love'
|
script = require 'love-release.scripts.love'
|
||||||
script(project)
|
script(project)
|
||||||
if args.macosx then
|
if args.macos then
|
||||||
script = require 'love-release.scripts.macosx'
|
script = require 'love-release.scripts.macos'
|
||||||
script(project)
|
script(project)
|
||||||
end
|
end
|
||||||
if #args.windows > 0 then
|
if #args.windows > 0 then
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
--- MacOS X app release.
|
--- macOS app release.
|
||||||
-- @module scripts.macosx
|
-- @module scripts.macos
|
||||||
-- @usage macosx(project)
|
-- @usage macos(project)
|
||||||
|
|
||||||
local fs = require "luarocks.fs"
|
local fs = require "luarocks.fs"
|
||||||
local zip = require "brimworks.zip"
|
local zip = require "brimworks.zip"
|
||||||
@@ -14,7 +14,7 @@ local s = {}
|
|||||||
local function validate(project)
|
local function validate(project)
|
||||||
local valid, err = true, utils.io.err
|
local valid, err = true, utils.io.err
|
||||||
if type(project.identifier) ~= "string" or project.identifier == "" then
|
if type(project.identifier) ~= "string" or project.identifier == "" then
|
||||||
err("MacOS X: No identifier specified.\n")
|
err("macOS: No identifier specified.\n")
|
||||||
valid = false
|
valid = false
|
||||||
end
|
end
|
||||||
if not valid then os.exit(1) end
|
if not valid then os.exit(1) end
|
||||||
@@ -31,7 +31,7 @@ function s.script(project)
|
|||||||
if project.loveVersion >= ver'11.0' then
|
if project.loveVersion >= ver'11.0' then
|
||||||
bin = prefix..".zip"
|
bin = prefix..".zip"
|
||||||
elseif project.loveVersion == ver'0.10.0' then
|
elseif project.loveVersion == ver'0.10.0' then
|
||||||
utils.io.err("MacOS X: No LÖVE 0.10.0 binary available.\n")
|
utils.io.err("macOS: No LÖVE 0.10.0 binary available.\n")
|
||||||
os.exit(1)
|
os.exit(1)
|
||||||
elseif project.loveVersion >= ver'0.9.0' then
|
elseif project.loveVersion >= ver'0.9.0' then
|
||||||
bin = prefix.."x-x64.zip"
|
bin = prefix.."x-x64.zip"
|
Reference in New Issue
Block a user