Skip to content

Commit

Permalink
Add love.install
Browse files Browse the repository at this point in the history
  • Loading branch information
naveen521kk committed Aug 19, 2020
1 parent 6c5021b commit c3ef5c8
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 1,220 deletions.
29 changes: 13 additions & 16 deletions love2d/love2d.nuspec → love.install/love.install.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>love2d</id>
<version>11.3</version>
<packageSourceUrl>https://github.com/naveen521kk/au-packages/tree/master/love2d</packageSourceUrl>
<id>love.install</id>
<version>0.10.2</version>
<packageSourceUrl>https://github.com/naveen521kk/au-packages/tree/master/love.install</packageSourceUrl>
<owners>naveen521kk</owners>
<title>LÖVE - Free 2D Game Engine (Install)</title>
<authors>LOVE Development Team</authors>
Expand All @@ -17,24 +17,21 @@
<docsUrl>http://love2d.org/wiki</docsUrl>
<!--<mailingListUrl></mailingListUrl>-->
<bugTrackerUrl>https://github.com/love2d/love/issues</bugTrackerUrl>
<tags>love2d lua luajit gamedev game-developement</tags>
<summary>LÖVE is an awesome framework you can use to make 2D games in Lua.</summary>
<tags>love2d lua luajit gamedev game-developement framework 2d admin</tags>
<summary>LÖVE is an *awesome* framework you can use to make 2D games in Lua.</summary>
<description>LÖVE is an *awesome* framework you can use to make 2D games in Lua. It's free, open-source, and works on Windows, Mac OS X, Linux, Android and iOS.
LÖVE is totally free, and can be used in anything from friendly open-source hobby projects, to evil, closed-source commercial ones.
# Open Source
LÖVE is licensed under the liberal zlib/libpng license.
# Community
If you get stuck, many friendly people are ready to help you at the forums. Be warned, however, that it sometimes gets too friendly.
# Games
LÖVE has been used for commercial projects, game jams, prototyping, and everything in between. Here are a few examples.
#### Documentation
* [Wiki](http://love2d.org/wiki)

#### Community
* [Forum](http://love2d.org/forums)
* [Google+](https://plus.google.com/+love2d)
* [Twitter](https://twitter.com/obey_love)

This package is to install Love2D.
**Please Note:** This is an automatically updated package. If you find it is out of date by more than a day or two, please contact the maintainer(s) and let them know the package is no longer updating correctly.
</description>
<releaseNotes>https://love2d.org/wiki/11.3</releaseNotes>
<dependencies>
<dependency id="lua" version="5.1.5.52" />
</dependencies>
<releaseNotes>https://love2d.org/wiki/11.3</releaseNotes>
</metadata>
<files>
<file src="tools\**" target="tools" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@


$ErrorActionPreference = 'Stop';
$ErrorActionPreference = 'Stop';
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$packageArgs = @{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@



$ErrorActionPreference = 'Stop';
$packageArgs = @{
packageName = $env:ChocolateyPackageName
softwareName = 'love*'
fileType = 'EXE'
silentArgs = '/S'



validExitCodes= @(0)
}

Expand Down
10 changes: 4 additions & 6 deletions love2d/update.ps1 → love.install/update.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import-module au

#for love2d
#for love
$releases = 'https://github.com/love2d/love/releases/'
$github_api_url='https://api.github.com/repos/love2d/love/releases'

Expand Down Expand Up @@ -30,24 +30,22 @@ function global:au_GetLatest {
$version = $stableRelease.tag_name
$releasenotes=$stableRelease.body
$releasenotes=[System.Security.SecurityElement]::Escape($releasenotes)
return @{ Version = $version; URL64 = $url64; URL32 = $url32; RELEASENOTES = $releasenotes}
return @{ Version = $version; URL64 = $url64; URL32 = $url32;}
}
function global:au_BeforeUpdate() {
$Latest.Checksum32 = Get-RemoteChecksum $Latest.URL32
$Latest.Checksum64 = Get-RemoteChecksum $Latest.URL64
}
#todo from here

function global:au_SearchReplace {
@{
".\tools\chocolateyinstall.ps1" = @{
"(?i)(^\s*Url\s*=\s*)'.*'" = "`${1}'$($Latest.URL32)'"
"(?i)(^\s*Url64bit\s*=\s*)'.*'" = "`${1}'$($Latest.URL64)'"
"(?i)(^\s*Checksum\s*=\s*)'.*'" = "`${1}'$($Latest.Checksum32)'"
"(?i)(^\s*Checksum64\s*=\s*)'.*'" = "`${1}'$($Latest.Checksum64)'"
"(?i)(^\s*ChecksumType\s*=\s*)'.*'" = "`${1}'$($Latest.ChecksumType32)'"
"(?i)(^\s*ChecksumType64\s*=\s*)'.*'" = "`${1}'$($Latest.ChecksumType64)'"
}
".\love2d.nuspec" = @{
".\love.install.nuspec" = @{
"(?im)(<releaseNotes>)(.*?)(<\/releaseNotes>)" = "`${1}https://love2d.org/wiki/$($Latest.Version)`${3}"
}
}
Expand Down
Loading

0 comments on commit c3ef5c8

Please sign in to comment.