I can`t export game.lua to game.exe, any help?

General discussion about LÖVE, Lua, game development, puns, and unicorns.
Post Reply
dracir15
Prole
Posts: 1
Joined: Wed Apr 29, 2020 1:07 pm

I can`t export game.lua to game.exe, any help?

Post by dracir15 »

I have made my first minigame and I want to share it with my friends. When I do the instructions, it doesn't work. I have Windows 10 and 64bits. First I compile my .lua files into a .zip file and then I change the .zip to .love. I see than if I move the game.love to the love.exe, the minigame works. After that, I do:

PS C:\Users\Usuario\Desktop\love-0.10.2-win64> copy /b love.exe+game.love game.exe

And the message is:

Copy-Item : No se encuentra ningún parámetro de posición que acepte el argumento 'game.exe'.
En línea: 1 Carácter: 1
+ copy /b love.exe+game.love game.exe
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Copy-Item], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.CopyItemCommand

Any help?
User avatar
ReFreezed
Party member
Posts: 612
Joined: Sun Oct 25, 2015 11:32 pm
Location: Sweden
Contact:

Re: I can`t export game.lua to game.exe, any help?

Post by ReFreezed »

Are you using PowerShell? That command is for cmd.exe, not PowerShell.
Tools: Hot Particles, LuaPreprocess, InputField, (more) Games: Momento Temporis
"If each mistake being made is a new one, then progress is being made."
User avatar
JuanjoSalvador
Prole
Posts: 26
Joined: Wed Nov 27, 2019 9:19 pm
Location: Almeria, ES
Contact:

Re: I can`t export game.lua to game.exe, any help?

Post by JuanjoSalvador »

If you're using PowerShell, add "cmd" before.

Code: Select all

cmd copy /b love.exe+game.love game.exe
itch.io profile - When I'm uploading my works and devblogs
GitHub - All my code is here!
Horchata - A set of Lua modules I wrote to make some task easier
Post Reply

Who is online

Users browsing this forum: No registered users and 33 guests