Skip to content

Commit

Permalink
Add lightning support
Browse files Browse the repository at this point in the history
  • Loading branch information
surapunoyousei committed Oct 4, 2023
1 parent b721b0f commit e61cfee
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/deliver-updates-to-floorp-browser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ on:
- Darwin
required: true
description: OS
buildVersion:
type: choice
required: true
default: normal
options:
- normal
- lightning
arch:
type: choice
options:
Expand Down Expand Up @@ -131,7 +138,8 @@ jobs:
for line in "${xml_notfound[@]}" ; do echo $line >> update_notfound.xml ; done
for line in "${xml_addon[@]}" ; do echo $line >> update_addon.xml ; done
- name: Copy files
- name: Copy files normal build
if: ${{ inputs.buildVersion }} == 'normal'
run: |
mkdir -p browser/${{ env.DISPLAY_VERSION }}/${{ inputs.os }}/${{ inputs.arch }}
for dir in $(ls -l browser | grep ^d | awk '{print $9}'); do
Expand All @@ -149,6 +157,22 @@ jobs:
mkdir -p systemAddon/xml/${{ env.DISPLAY_VERSION }}/${{ inputs.os }}
cp ~/update_tmpfiles/update_addon.xml systemAddon/xml/${{ env.DISPLAY_VERSION }}/${{ inputs.os }}/update.xml
- name: Copy files Lightning build
if: ${{ inputs.buildVersion }} == 'lightning'
run: |
mkdir -p lightning/${{ env.DISPLAY_VERSION }}/${{ inputs.os }}/${{ inputs.arch }}
for dir in $(ls -l browser | grep ^d | awk '{print $9}'); do
echo $dir
mkdir -p lightning/${dir}/${{ inputs.os }}/${{ inputs.arch }}
if [[ "$dir" != "beta" ]]; then
if [[ "$dir" == "${{ env.DISPLAY_VERSION }}" ]]; then
cp ~/update_tmpfiles/update_notfound.xml lightning/${dir}/${{ inputs.os }}/${{ inputs.arch }}/update.xml
else
cp ~/update_tmpfiles/update_found.xml lightning/${dir}/${{ inputs.os }}/${{ inputs.arch }}/update.xml
fi
fi
done
- name: Commit
run: |
git config --global user.name "github-actions[bot]"
Expand Down
24 changes: 24 additions & 0 deletions lightning/latest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{

"win-x86-64": {
"version": "11.4.1",
"url": "https://github.com/Floorp-Projects/Floorp/releases/download/v11.4.1/floorpLightning-win64.installer.exe",
"notify": false
},
"linux-x86-64": {
"version": "11.4.1",
"url": "https://github.com/Floorp-Projects/Floorp/releases/download/v11.4.1/floorpLightning-11.4.1.linux-x86_64.tar.bz2",
"notify": false
},
"linux-arm": {
"version": "11.4.1",
"url": "https://github.com/Floorp-Projects/Floorp/releases/download/v11.4.1/floorpLightning-11.4.1.linux-aarch64.tar.bz2",
"notify": true
},
"mac": {
"version": "11.4.1",
"url": "https://github.com/Floorp-Projects/Floorp/releases/download/v11.4.1/floorpLightning-macOS-universal.dmg",
"notify": false
}

}

0 comments on commit e61cfee

Please sign in to comment.