Skip to content

Commit

Permalink
Merge pull request #101 from maddie480/downgrade-luajit
Browse files Browse the repository at this point in the history
"Fix" cursed Windows issues by downgrading LuaJIT
  • Loading branch information
maddie480 authored Dec 8, 2024
2 parents 6babe13 + dda7b55 commit 183aaf1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
16 changes: 15 additions & 1 deletion azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ strategy:
netbuilder: 'core'
lualibs: 'prebuilt'
loveURL: 'https://github.com/love2d/love/releases/download/11.5/love-11.5-win32.zip'
loveLuaURL: 'https://github.com/love2d/love/releases/download/11.3/love-11.3-win32.zip'
loveZIP: 'love.zip'
loveAppImage: ''
loveBinaryDirectory: ''
Expand All @@ -27,6 +28,7 @@ strategy:
luarocksPreArgs: '--lua-dir=/usr/local/opt/[email protected]'
luarocksArgs: 'LUA_LIBDIR="/usr/local/opt/[email protected]/lib"'
loveURL: 'https://github.com/love2d/love/releases/download/11.5/love-11.5-macos.zip'
loveLuaURL: ''
loveZIP: 'love.zip'
loveAppImage: ''
loveBinaryDirectory: 'love.app/Contents/MacOS/'
Expand All @@ -43,6 +45,7 @@ strategy:
lualibs: 'luarocks'
luarocksArgs: 'LUA_LIBDIR="/usr/local/opt/lua/lib"'
loveURL: 'https://github.com/love2d/love/releases/download/11.5/love-11.5-x86_64.AppImage'
loveLuaURL: ''
loveZIP: ''
loveAppImage: 'love-raw/love'
loveBinaryDirectory: ''
Expand Down Expand Up @@ -186,7 +189,7 @@ steps:
condition: and(succeeded(), ne(variables.loveURL, ''))
displayName: 'Dist: Grab cached LÖVE'
inputs:
key: 'love-unpacked-11-4 | "$(Agent.OS)"'
key: 'love-unpacked | "$(Agent.OS)"'
path: love-raw
cacheHitVar: loveCached
- task: PowerShell@2
Expand All @@ -206,6 +209,17 @@ steps:
targetType: 'inline'
script: |
Expand-Archive -Path $env:LOVEZIP -DestinationPath love-raw
# If we need to pull lua51.dll from another LÖVE package, download, unzip and grab lua51.dll.
- task: PowerShell@2
condition: and(succeeded(), ne(variables.loveLuaURL, ''), ne(variables.loveCached, 'true'))
displayName: 'Dist: Replace lua51.dll'
continueOnError: true
inputs:
targetType: 'inline'
script: |
Invoke-WebRequest -Uri $env:LOVELUAURL -OutFile lovelua.zip
Expand-Archive -Path lovelua.zip -DestinationPath lovelua
Copy-Item -Path lovelua/love-11.3-win32/lua51.dll -Destination love-raw/love-11.5-win32/lua51.dll -Force
# Copy cached unpacked LÖVE, fix it up if needed
- task: PowerShell@2
condition: and(succeeded(), ne(variables.loveURL, ''))
Expand Down
3 changes: 1 addition & 2 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ and only contains the latest changes.
Its purpose is to be shown in Olympus when updating.

#changelog#
∙ Added some environment variables to control Olympus behavior, for use in the NixOS package
∙ Disable unused love2d features (audio, joystick, physics, touch, video), which should prevent Olympus from appearing in sound sources
∙ Downgrade LuaJIT from 2.1 to 2.0 on Windows to (hopefully) fix Olympus randomly closing on some machines

0 comments on commit 183aaf1

Please sign in to comment.