Skip to content

Commit

Permalink
[AU runelite]
Browse files Browse the repository at this point in the history
  • Loading branch information
w0 committed Jan 18, 2021
1 parent 24d0602 commit bd2e478
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 24 deletions.
13 changes: 13 additions & 0 deletions runelite/ReadMe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# <img src="https://cdn.jsdelivr.net/gh/w0/au-packages/runelite/icon.png" width="48" height="48"/> [![](https://img.shields.io/chocolatey/v/runelite.svg?color=green&label=runelite)](https://chocolatey.org/packages/runelite)

RuneLite is a free, open source OldSchool RuneScape client.

If you have any questions, please join our IRC channel on [irc.rizon.net #runelite](http://qchat.rizon.net/?channels=runelite&uio=d4) or alternatively our [Discord](https://discord.gg/mePCs8U) server.

## Project Layout

- [cache](cache/src/main/java/net/runelite/cache) - Libraries used for reading/writing cache files, as well as the data in it
- [http-api](http-api/src/main/java/net/runelite/http/api) - API for api.runelite.net
- [http-service](http-service/src/main/java/net/runelite/http/service) - Service for api.runelite.net
- [runelite-api](runelite-api/src/main/java/net/runelite/api) - RuneLite API, interfaces for accessing the client
- [runelite-client](runelite-client/src/main/java/net/runelite/client) - Game client with plugins
Binary file removed runelite/icon/runelite_logo_transparent.png
Binary file not shown.
29 changes: 20 additions & 9 deletions runelite/runelite.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,33 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>runelite</id>
<version>2.1.6</version>
<version>2.1.6.20210118</version>
<packageSourceUrl>https://github.com/w0/au-packages/tree/master/runelite</packageSourceUrl>
<owners>wizard</owners>
<title>Runelite</title>
<title>RuneLite</title>
<authors>RuneLite</authors>
<projectUrl>https://github.com/runelite/runelite</projectUrl>
<iconUrl>https://cdn.statically.io/gh/w0/au-packages/40c2ed6c/runelite/icon/runelite_logo_transparent.png</iconUrl>
<copyright>2016, Adam</copyright>
<licenseUrl>https://github.com/runelite/runelite/blob/master/LICENSE</licenseUrl>
<projectUrl>https://runelite.net/</projectUrl>
<iconUrl>https://cdn.jsdelivr.net/gh/w0/au-packages/runelite/icon.png</iconUrl>
<copyright>2016 RuneLite Adam</copyright>
<licenseUrl>https://github.com/runelite/launcher/blob/master/LICENSE</licenseUrl>
<requireLicenseAcceptance>true</requireLicenseAcceptance>
<projectSourceUrl>https://runelite.net/</projectSourceUrl>
<projectSourceUrl>https://github.com/runelite/launcher</projectSourceUrl>
<docsUrl>https://github.com/runelite/runelite/wiki</docsUrl>
<bugTrackerUrl>https://github.com/runelite/launcher/issues</bugTrackerUrl>
<tags>runelite osrs runescape old school</tags>
<tags>runelite osrs runescape old school games</tags>
<summary>A popular free, open-source and super fast client for Old School RuneScape</summary>
<description>A popular free, open-source and super fast client for Old School RuneScape</description>
<description><![CDATA[RuneLite is a free, open source OldSchool RuneScape client.
If you have any questions, please join our IRC channel on [irc.rizon.net #runelite](http://qchat.rizon.net/?channels=runelite&uio=d4) or alternatively our [Discord](https://discord.gg/mePCs8U) server.
## Project Layout
- [cache](cache/src/main/java/net/runelite/cache) - Libraries used for reading/writing cache files, as well as the data in it
- [http-api](http-api/src/main/java/net/runelite/http/api) - API for api.runelite.net
- [http-service](http-service/src/main/java/net/runelite/http/service) - Service for api.runelite.net
- [runelite-api](runelite-api/src/main/java/net/runelite/api) - RuneLite API, interfaces for accessing the client
- [runelite-client](runelite-client/src/main/java/net/runelite/client) - Game client with plugins
]]></description>
<releaseNotes>https://runelite.net/blog</releaseNotes>
</metadata>
<files>
Expand Down
6 changes: 2 additions & 4 deletions runelite/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
$ErrorActionPreference = 'Stop';
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"


$packageArgs = @{
packageName = $env:ChocolateyPackageName
unzipLocation = $toolsDir
fileType = 'exe'
url = 'https://github.com//runelite/launcher/releases/download/2.1.6/RuneLiteSetup32.exe'
url64 = 'https://github.com//runelite/launcher/releases/download/2.1.6/RuneLiteSetup.exe'
url = 'https://github.com/runelite/launcher/releases/download/2.1.6/RuneLiteSetup32.exe'
url64 = 'https://github.com/runelite/launcher/releases/download/2.1.6/RuneLiteSetup.exe'

softwareName = 'runelite*'

Expand All @@ -21,4 +20,3 @@ $packageArgs = @{
}

Install-ChocolateyPackage @packageArgs

23 changes: 12 additions & 11 deletions runelite/update.ps1
Original file line number Diff line number Diff line change
@@ -1,32 +1,33 @@
$releases = 'https://github.com/runelite/launcher/releases'
$domain = 'https://github.com/'
Import-Module AU
. $PSScriptRoot\..\_scripts\all.ps1

$releases = 'https://github.com/runelite/launcher/releases'
$domain = 'https://github.com'

function global:au_SearchReplace {
@{
"tools\chocolateyInstall.ps1" = @{
"(url\s*=\s*)('.*')" = "`$1'$($Latest.URL32)'" #1
"(url64\s*=\s*)('.*')" = "`$1'$($Latest.URL64)'" #2
"(checksum\s*=\s*)('.*')" = "`$1'$($Latest.Checksum32)'" #2
"(checksum64\s*=\s*)('.*')" = "`$1'$($Latest.Checksum64)'" #2
"(url\s*=\s*)('.*')" = "`$1'$($Latest.URL32)'"
"(url64\s*=\s*)('.*')" = "`$1'$($Latest.URL64)'"
"(checksum\s*=\s*)('.*')" = "`$1'$($Latest.Checksum32)'"
"(checksum64\s*=\s*)('.*')" = "`$1'$($Latest.Checksum64)'"

}
}
}

function global:au_GetLatest {
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing #1
$download_page = Invoke-WebRequest -Uri $releases -UseBasicParsing

$url64 = $download_page.links | ? href -match '\.exe$' | % href | select -first 1
$url32 = $download_page.links | ? href -match '\.exe$' | % href | select -first 1 -skip 1
$url64 = $download_page.links | ? href -match '\.exe$' | select -ExpandProperty href -First 1
$url32 = $download_page.links | ? href -match '32\.exe$' | select -ExpandProperty href -First 1
$version = $url32 -split '/' | select -last 1 -skip 1

return @{
Version = $version;
URL32 = $domain + $url32
URL64 = $domain + $url64

}
}

update
update -NoCheckChocoVersion -Force

0 comments on commit bd2e478

Please sign in to comment.