Compare commits
No commits in common. "main" and "4.13" have entirely different histories.
3
.drone.status
Normal file
3
.drone.status
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"url": "https://drone.f-brinker.de/fbrinker/elderscrolls-addon-achievementInfo/"
|
||||||
|
}
|
59
.drone.yml
Normal file
59
.drone.yml
Normal file
@ -0,0 +1,59 @@
|
|||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
name: default
|
||||||
|
|
||||||
|
clone:
|
||||||
|
disable: true
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: clone
|
||||||
|
image: alpine/git
|
||||||
|
commands:
|
||||||
|
- git clone https://git.f-brinker.de/fbrinker/elderscrolls-addon-achievementInfo.git sources
|
||||||
|
- cd sources && git checkout $DRONE_COMMIT
|
||||||
|
|
||||||
|
- name: lint
|
||||||
|
image: alpine
|
||||||
|
commands:
|
||||||
|
- apk update
|
||||||
|
- apk add --no-cache build-base curl unzip
|
||||||
|
- apk add --no-cache lua5.1 lua5.1-dev luarocks5.1
|
||||||
|
- luarocks-5.1 install luacheck
|
||||||
|
- cd sources
|
||||||
|
- luacheck ./*.lua
|
||||||
|
|
||||||
|
- name: build
|
||||||
|
image: alpine
|
||||||
|
commands:
|
||||||
|
- apk update && apk add --no-cache zip
|
||||||
|
# Delete unneeded files/dirs
|
||||||
|
- rm -rf sources/.git
|
||||||
|
- rm -rf sources/screenshots
|
||||||
|
- rm -f sources/.drone.status
|
||||||
|
- rm -f sources/.drone.yml
|
||||||
|
- rm -f sources/.luacheckrc
|
||||||
|
# Set Version and AddonVersion
|
||||||
|
- export VERSION=$DRONE_TAG
|
||||||
|
- export ADDON_VERSION=$(echo $DRONE_TAG | sed -E 's/(0|)\.//g')
|
||||||
|
- sed -i "s/0.123456789/$VERSION/g" sources/AchievementInfoCommon.lua
|
||||||
|
- sed -i "s/0.123456789/$VERSION/g" sources/AchievementInfo.txt
|
||||||
|
- sed -i "s/0.123456789/$ADDON_VERSION/g" sources/AchievementInfo.txt
|
||||||
|
# Rename and zip
|
||||||
|
- mv sources AchievementInfo
|
||||||
|
- zip -r "AchievementInfo-$DRONE_TAG.zip" ./AchievementInfo
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
||||||
|
|
||||||
|
- name: release
|
||||||
|
image: plugins/gitea-release
|
||||||
|
settings:
|
||||||
|
base_url: https://git.f-brinker.de
|
||||||
|
api_key:
|
||||||
|
from_secret: gitea_token
|
||||||
|
files: ./*.zip
|
||||||
|
title: AchievementInfo ${DRONE_TAG}
|
||||||
|
note: AchievementInfo/CHANGELOG.md
|
||||||
|
when:
|
||||||
|
event:
|
||||||
|
- tag
|
@ -1,55 +0,0 @@
|
|||||||
name: Workflow
|
|
||||||
run-name: ${{ gitea.actor }} is linting and creating a new release on tag pushes 🚀
|
|
||||||
on: [push]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
|
|
||||||
Linting:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
- name: Run Luacheck linter
|
|
||||||
uses: lunarmodules/luacheck@v1
|
|
||||||
|
|
||||||
Release:
|
|
||||||
needs: [Linting]
|
|
||||||
if: ${{ startsWith(github.ref, 'refs/tags/') }} # only for tags
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
env:
|
|
||||||
Version: ${{ gitea.ref_name }}
|
|
||||||
steps:
|
|
||||||
- name: Check out repository code
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
path: sources
|
|
||||||
- name: Delete unneeded files/dirs
|
|
||||||
run: |
|
|
||||||
rm -rf sources/.git
|
|
||||||
rm -rf sources/.gitea
|
|
||||||
rm -rf sources/screenshots
|
|
||||||
rm -f sources/.luacheckrc
|
|
||||||
- name: Set Version and AddonVersion
|
|
||||||
run: |
|
|
||||||
echo "Version: ${{ env.Version }}"
|
|
||||||
export ADDON_VERSION=$(echo ${{ env.Version }} | sed -E 's/(0|)\.//g')
|
|
||||||
sed -i "s/0.123456789/${{ env.Version }}/g" sources/AchievementInfoCommon.lua
|
|
||||||
sed -i "s/0.123456789/${{ env.Version }}/g" sources/AchievementInfo.txt
|
|
||||||
sed -i "s/0.123456789/$ADDON_VERSION/g" sources/AchievementInfo.txt
|
|
||||||
- name: Rename and zip
|
|
||||||
run: |
|
|
||||||
mv sources AchievementInfo
|
|
||||||
zip -r "AchievementInfo-${{ env.Version }}.zip" ./AchievementInfo
|
|
||||||
- name: Create release
|
|
||||||
id: create_release
|
|
||||||
uses: akkuman/gitea-release-action@v1
|
|
||||||
with:
|
|
||||||
token: ${{ secrets.token }}
|
|
||||||
name: "AchievementInfo ${{ env.Version }}"
|
|
||||||
tag_name: "${{ env.Version }}"
|
|
||||||
body_path: AchievementInfo/CHANGELOG.md
|
|
||||||
draft: false
|
|
||||||
prerelease: false
|
|
||||||
sha256sum: true
|
|
||||||
files: |-
|
|
||||||
*.zip
|
|
@ -17,7 +17,7 @@ read_globals = {
|
|||||||
"EVENT_ACHIEVEMENT_UPDATED",
|
"EVENT_ACHIEVEMENT_UPDATED",
|
||||||
"EVENT_ADD_ON_LOADED",
|
"EVENT_ADD_ON_LOADED",
|
||||||
"EVENT_MANAGER",
|
"EVENT_MANAGER",
|
||||||
"LINK_STYLE_BRACKETS",
|
"LINK_STYLE_BRACKET",
|
||||||
"zo_callLater",
|
"zo_callLater",
|
||||||
"zo_strformat",
|
"zo_strformat",
|
||||||
"ZO_SavedVars",
|
"ZO_SavedVars",
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
## Author: |c87B7CCAsto|r, @Astarax
|
## Author: |c87B7CCAsto|r, @Astarax
|
||||||
## Contact: mail@coded-with-heart.com
|
## Contact: mail@coded-with-heart.com
|
||||||
|
|
||||||
## APIVersion: 101044
|
## APIVersion: 101038
|
||||||
## SavedVariables: ACHIEVEMENT_INFO_DB ACHIEVEMENT_INFO_DB_USE_AW
|
## SavedVariables: ACHIEVEMENT_INFO_DB ACHIEVEMENT_INFO_DB_USE_AW
|
||||||
|
|
||||||
## DependsOn: LibAddonMenu-2.0
|
## DependsOn: LibAddonMenu-2.0
|
||||||
|
@ -49,7 +49,7 @@ function AchievementInfo.onAchievementUpdated(_, achId)
|
|||||||
local percentageStep = false
|
local percentageStep = false
|
||||||
local percentageStepSize = AchievementInfo.settingGet("genShowUpdateSteps")
|
local percentageStepSize = AchievementInfo.settingGet("genShowUpdateSteps")
|
||||||
|
|
||||||
local link = GetAchievementLink(achId, LINK_STYLE_BRACKETS)
|
local link = GetAchievementLink(achId, LINK_STYLE_BRACKET)
|
||||||
local catName = "/"
|
local catName = "/"
|
||||||
|
|
||||||
if categoryId ~= false then
|
if categoryId ~= false then
|
||||||
|
@ -1,8 +1,5 @@
|
|||||||
#### Notable Changes
|
#### Notable Changes
|
||||||
|
|
||||||
##### Release 4.15
|
|
||||||
* Fixed "bracket style" of the achievement links, thanks to DakJaniels
|
|
||||||
|
|
||||||
##### Release 4.5
|
##### Release 4.5
|
||||||
* Fixed "ShowDetails" option working only in combination with "ShowOpenDetailsOnly"
|
* Fixed "ShowDetails" option working only in combination with "ShowOpenDetailsOnly"
|
||||||
|
|
||||||
|
@ -1,8 +1,6 @@
|
|||||||
# AchievementInfo
|
# AchievementInfo
|
||||||
|
|
||||||
[![Version Status](https://monitoring.f-brinker.de/api/badge/18/status?style=plastic&upLabel=Up%20to%20date&downLabel=Outdated)](https://monitoring.f-brinker.de/status/eso)
|
[![Build Status](https://drone.f-brinker.de/api/badges/fbrinker/elderscrolls-addon-achievementInfo/status.svg)](https://drone.f-brinker.de/fbrinker/elderscrolls-addon-achievementInfo)
|
||||||
[![Build Status](https://git.f-brinker.de/fbrinker/elderscrolls-addon-achievementInfo/actions/workflows/build.yaml/badge.svg)](https://git.f-brinker.de/fbrinker/elderscrolls-addon-achievementInfo/actions)
|
|
||||||
|
|
||||||
[![Latest Releases](https://badgen.net/badge/releases/latest)](https://git.f-brinker.de/fbrinker/elderscrolls-addon-achievementInfo/releases)
|
[![Latest Releases](https://badgen.net/badge/releases/latest)](https://git.f-brinker.de/fbrinker/elderscrolls-addon-achievementInfo/releases)
|
||||||
[![Downloads](https://badgen.net/https/scripts.f-brinker.de/esoui-stats/badge-total.php?cache=1800)](https://www.esoui.com/downloads/info350-AchievementInfo.html)
|
[![Downloads](https://badgen.net/https/scripts.f-brinker.de/esoui-stats/badge-total.php?cache=1800)](https://www.esoui.com/downloads/info350-AchievementInfo.html)
|
||||||
[![Favorites](https://badgen.net/https/scripts.f-brinker.de/esoui-stats/badge-fav.php?cache=1800)](https://www.esoui.com/downloads/info350-AchievementInfo.html)
|
[![Favorites](https://badgen.net/https/scripts.f-brinker.de/esoui-stats/badge-fav.php?cache=1800)](https://www.esoui.com/downloads/info350-AchievementInfo.html)
|
||||||
|
Loading…
Reference in New Issue
Block a user