Skip to content

Commit

Permalink
Update Version
Browse files Browse the repository at this point in the history
Add release workflow
Fix track tile exist check
Improve internet connection error text
  • Loading branch information
alesan99 committed Oct 26, 2024
1 parent 3295c59 commit f34ca26
Show file tree
Hide file tree
Showing 4 changed files with 124 additions and 5 deletions.
119 changes: 119 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
name: Release

on:
push:
tags:
- 'v*' # Triggers on version tags, e.g., v1.0, v1.1.0

jobs:
create-release:
name: Create GitHub Release
runs-on: ubuntu-latest

needs: build # Ensure this job runs after the "Compile" job

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Download and Rename Linux Artifact
uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}-linux
path: ./artifacts
- run: mv ./artifacts/mari0_ae-linux ./artifacts/alesan99s_entities_${{ github.ref_name }}.AppImage

- name: Download and Rename macOS Artifact
uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}-macos
path: ./artifacts
- run: mv ./artifacts/mari0_ae-macos ./artifacts/alesan99s_entities_${{ github.ref_name }}-macos.zip

- name: Download and Rename Windows 64-bit Artifact
uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}-win64
path: ./artifacts
- run: mv ./artifacts/mari0_ae-win64 ./artifacts/alesan99s_entities_${{ github.ref_name }}-win64.zip

- name: Download and Rename Windows 32-bit Artifact
uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}-win32
path: ./artifacts
- run: mv ./artifacts/mari0_ae-win32 ./artifacts/alesan99s_entities_${{ github.ref_name }}-win32.zip

- name: Download and Rename Android Release APK
uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}-android-release
path: ./artifacts
- run: mv ./artifacts/${{ github.event.repository.name }}-android-release ./artifacts/alesan99s_entities_${{ github.ref_name }}.apk

- name: Download and Rename Source Code Artifact
uses: actions/download-artifact@v4
with:
name: ${{ github.event.repository.name }}-source
path: ./artifacts
- run: mv ./artifacts/${{ github.event.repository.name }}-source ./artifacts/alesan99s_entities_${{ github.ref_name }}-source.zip

- name: Create Release
id: create_release
uses: actions/create-release@v1
with:
tag_name: ${{ github.ref_name }}
release_name: Release ${{ github.ref_name }}
draft: false
prerelease: false
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Linux Artifact
uses: actions/upload-release-asset@v1
with:
release_id: ${{ steps.create_release.outputs.id }}
asset_path: ./artifacts/alesan99s_entities_${{ github.ref_name }}.AppImage
asset_name: alesan99s_entities_${{ github.ref_name }}.AppImage
asset_content_type: application/x-executable

- name: Upload macOS Artifact
uses: actions/upload-release-asset@v1
with:
release_id: ${{ steps.create_release.outputs.id }}
asset_path: ./artifacts/alesan99s_entities_${{ github.ref_name }}-macos.zip
asset_name: alesan99s_entities_${{ github.ref_name }}-macos.zip
asset_content_type: application/zip

- name: Upload Windows 64-bit Artifact
uses: actions/upload-release-asset@v1
with:
release_id: ${{ steps.create_release.outputs.id }}
asset_path: ./artifacts/alesan99s_entities_${{ github.ref_name }}-win64.zip
asset_name: alesan99s_entities_${{ github.ref_name }}-win64.zip
asset_content_type: application/zip

- name: Upload Windows 32-bit Artifact
uses: actions/upload-release-asset@v1
with:
release_id: ${{ steps.create_release.outputs.id }}
asset_path: ./artifacts/alesan99s_entities_${{ github.ref_name }}-win32.zip
asset_name: alesan99s_entities_${{ github.ref_name }}-win32.zip
asset_content_type: application/zip

- name: Upload Android Release APK
uses: actions/upload-release-asset@v1
with:
release_id: ${{ steps.create_release.outputs.id }}
asset_path: ./artifacts/alesan99s_entities_${{ github.ref_name }}.apk
asset_name: alesan99s_entities_${{ github.ref_name }}.apk
asset_content_type: application/vnd.android.package-archive

- name: Upload Source Code
uses: actions/upload-release-asset@v1
with:
release_id: ${{ steps.create_release.outputs.id }}
asset_path: ./artifacts/alesan99s_entities_${{ github.ref_name }}-source.zip
asset_name: alesan99s_entities_${{ github.ref_name }}-source.zip
asset_content_type: application/zip
2 changes: 1 addition & 1 deletion editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1654,7 +1654,7 @@ function editor_draw()
local tx, ty = rcp.x+rcp.path[i][1], rcp.y+rcp.path[i][2]
drawtrack(tx, ty, rcp.path[i][3], rcp.path[i][4])
--is object selected to be tracked? (d=default(entity),r=reverse,t=tile,tr=tile reverse)
if i ~= 1 and i ~= ismaptile(tx, ty) and (map[tx][ty][2] or rcp.path[i][5] == "t" or rcp.path[i][5] == "tr" or rcp.path[i][5] == "tf" or rcp.path[i][5] == "tfr") then
if i ~= 1 and ismaptile(tx, ty) and (map[tx][ty][2] or rcp.path[i][5] == "t" or rcp.path[i][5] == "tr" or rcp.path[i][5] == "tf" or rcp.path[i][5] == "tfr") then
local trackable = rcp.path[i][5] or "d"
if trackable ~= "" then
local dir = rcp.path[i][4]
Expand Down
4 changes: 2 additions & 2 deletions main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -182,8 +182,8 @@ if debugconsole then debuginputon = true; debuginput = "print()"; print("DEBUG O
local debugGraph,fpsGraph,memGraph,drawGraph
local debugGraphs = false

VERSION = 13.2001
VERSIONSTRING = "13.2 (10/13/24)"
VERSION = 13.2002
VERSIONSTRING = "13.2 (10/26/2024)"
ANDROIDVERSION = 18

android = (love.system.getOS() == "Android" or love.system.getOS() == "iOS") --[DROID]
Expand Down
4 changes: 2 additions & 2 deletions menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1996,8 +1996,8 @@ function loadonlinemappacks()
local asset = {
type = "error",
name = "error",
author = "error",
description = "error",
author = "-",
description = "couldn't connect!",
download = {
url = "error",
filename = "error",
Expand Down

0 comments on commit f34ca26

Please sign in to comment.