Add readme, license, and build script
This commit is contained in:
parent
3267fba979
commit
e4a1f135fb
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
build
|
16
LICENSE.txt
Normal file
16
LICENSE.txt
Normal file
@ -0,0 +1,16 @@
|
||||
MIT No Attribution
|
||||
|
||||
Copyright © 2024 Brandon Dyck <brandon@dyck.us>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this
|
||||
software and associated documentation files (the "Software"), to deal in the Software
|
||||
without restriction, including without limitation the rights to use, copy, modify,
|
||||
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
|
||||
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
|
||||
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
|
||||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
18
README.txt
Normal file
18
README.txt
Normal file
@ -0,0 +1,18 @@
|
||||
clocktoy
|
||||
==========
|
||||
|
||||
A toy analog clock for my kids to learn to set and read clocks.
|
||||
|
||||
Developed on LÖVE v11.4 (https://love2d.org/), but may work on
|
||||
earlier versions.
|
||||
|
||||
LICENSE
|
||||
---------
|
||||
|
||||
Copyright © 2024 Brandon Dyck <brandon@dyck.us>
|
||||
This work is free. You can redistribute it and/or modify it under
|
||||
the terms of the MIT No Attribution License. See LICENSE.txt for
|
||||
more details.
|
||||
|
||||
The clock face font, Josefin Sans Regular, is used by permission
|
||||
of The Josefin Sans Project Authors. See font/OFL.txt for details.
|
29
build.ps1
Normal file
29
build.ps1
Normal file
@ -0,0 +1,29 @@
|
||||
$date = Get-Date -Format 'yyyy-MM-dd'
|
||||
$name = 'clocktoy-'+$date
|
||||
$lovefile = "build\$($name).love"
|
||||
$namewin = $name+'-win32'
|
||||
$zipdir = 'build\'+$namewin
|
||||
$zipfile = $zipdir+'.zip'
|
||||
$exefile = "$($zipdir)\$($namewin).exe"
|
||||
$loveversion = "11.4"
|
||||
$lovename = "love-$($loveversion)-win32"
|
||||
$loveurl = "https://github.com/love2d/love/releases/download/$($loveversion)/$($lovename).zip"
|
||||
$lovezip = "build\$($lovename).zip"
|
||||
|
||||
if (Test-Path "build") {
|
||||
Remove-Item "build" -Recurse
|
||||
}
|
||||
|
||||
New-Item -Path "." -Name "build" -ItemType "directory"
|
||||
Compress-Archive -Path "*.lua", "*.txt", "font" -DestinationPath $lovefile
|
||||
|
||||
Invoke-WebRequest $loveurl -OutFile $lovezip
|
||||
(New-Object System.Net.WebClient).DownloadFile($loveurl, $lovezip)
|
||||
|
||||
|
||||
Expand-Archive -Path $lovezip -DestinationPath "build"
|
||||
New-Item -Path "build" -Name $namewin -ItemType "directory"
|
||||
Get-Content "build\$($lovename)\love.exe", $lovefile -AsByteStream | Set-Content $exefile -AsByteStream
|
||||
|
||||
Copy-Item -Path "build\$($lovename)\*.dll", "build\$($lovename)\license.txt" -Destination $zipdir
|
||||
Compress-Archive -Path $zipdir -Destination $zipfile
|
Loading…
Reference in New Issue
Block a user