Skip to content

Commit 6bea06a

Browse files
committed
added arm build support
1 parent ba69089 commit 6bea06a

3 files changed

Lines changed: 49 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: builds standalone binaries
1+
name: builds binaries
22
on:
33
push:
44
tags:
@@ -13,6 +13,38 @@ jobs:
1313
run: |
1414
cd build && chmod +x build.sh
1515
./build.sh -b -t -p -r linux-x64
16+
env:
17+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
18+
19+
win-x64:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v1
23+
- name: builds win-x64 binary and uploads to github
24+
run: |
25+
cd build && chmod +x build.sh
1626
./build.sh -b -p -r win-x64
27+
env:
28+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
29+
30+
linux-arm64:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v1
34+
- name: builds linux-arm64 binary and uploads to github
35+
run: |
36+
cd build && chmod +x build.sh
37+
./build.sh -b -t -p -r linux-arm64
38+
env:
39+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
40+
41+
win-arm64:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v1
45+
- name: builds win-arm64 binary and uploads to github
46+
run: |
47+
cd build && chmod +x build.sh
48+
./build.sh -b -t -p -r win-arm64
1749
env:
1850
GH_TOKEN: ${{ secrets.GH_TOKEN }}

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
App for downloading scrobbles from Last.fm - save your play history for posterity. Data is stored as a JSON file. Works on large histories - 900K+ scrobbles, going back to 2004.
44

5+
Available for Linux and Windows, x86/x64 and arm64.
6+
57
## Features
68

79
- Supports download resumption
@@ -10,17 +12,17 @@ App for downloading scrobbles from Last.fm - save your play history for posterit
1012

1113
## Install
1214

13-
Simply download the latest build of lastfm download from [github.com.](https://github.com/shukriadams/lastfm-dl/releases) for your OS. No dependencies are required. Place wherever you normally store binaries on your system.
15+
Download the latest build of lastfm-dl download from [github.com.](https://github.com/shukriadams/lastfm-dl/releases) for your OS. No dependencies are required. Place wherever you normally store binaries on your system, and add to your system PATH if desired.
1416

15-
To use, invoke the app directly from the terminal.
17+
To use, invoke directly from the terminal.
1618

1719
lastfm-dl
1820

1921
## Requirements
2022

21-
You need a valid cookie bound to your Lastfm user. You can copy this from any modern browser when you login to Lastfm. There are several browser plugins that can help you do this, but if you want to get the cookie directly, in your browser
23+
You need a valid cookie bound to your Last.fm user. You can copy this from any modern browser when you login to Lastfm. There are several browser plugins that can help you do this, but if you want to get the cookie directly, in your browser
2224

23-
- Right mouse click on any last.fm page and "inspect" the page
25+
- Right mouse click on any Last.fm page and "inspect" the page
2426
- This brings up the common dev console, go to the "Network" tab.
2527
- Press "F5" to reload the page, scroll to the top of the list of transfers (the first successful GET transfer status code 200), click it.
2628
- Find the Headers tab for that item's transfer, then the Request section under that. Copy the entire cookie string

build/build.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ set -e
55
PUSH=0
66
TEST=0
77
BUILD=0
8-
ALLOWED_RUNTIMES=("linux-x64" "win-x64")
8+
ALLOWED_RUNTIMES=("linux-x64" "win-x64" "linux-arm64" "win-arm64")
99
RUNTIME="linux-x64"
1010
HASH=""
1111

@@ -92,6 +92,15 @@ if [ $PUSH -eq 1 ]; then
9292
elif [ $RUNTIME = "win-x64" ] ; then
9393
filename=./../publish/Lastfm_dl.exe
9494
EXTENSION=".exe"
95+
96+
elif [ $RUNTIME = "linux-arm64" ] ; then
97+
filename=./../publish/Lastfm_dl
98+
EXTENSION=
99+
100+
elif [ $RUNTIME = "win-arm64" ] ; then
101+
filename=./../publish/Lastfm_dl.exe
102+
EXTENSION=".exe"
103+
95104
fi
96105

97106
NAME="lastfm-dl_${RUNTIME}${EXTENSION}"

0 commit comments

Comments
 (0)