Skip to content

Commit

Permalink
feat(build): add support for ARM-based Macs
Browse files Browse the repository at this point in the history
  • Loading branch information
kookehs committed Dec 21, 2020
1 parent 8aeca99 commit 328b813
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 13 deletions.
30 changes: 20 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@ You can use the developer tools provided by your browser to look at network requ
- `token` is found in `Form Data` under `__RequestVerificationToken`.

## Usage
1. Configure config.json
1. Download the latest release [here](https://github.com/kookehs/bdo-marketplace/releases).
- Grab the `config.json` and the appropriate executable for your system.
- The `items.json` file is a list of some item IDs for reference. You can create your own with relevant IDs.
2. Configure config.json
```
{
"input": "filename with list of items to get prices for",
Expand All @@ -33,24 +36,31 @@ You can use the developer tools provided by your browser to look at network requ
"url": "regional URL"
}
```
2. Execute binary for your system
3. Execute binary for your system
```
bdo-marketplace-darwin-arm64
bdo-marketplace-darwin-amd64
bdo-marketplace-linux-x8632
bdo-marketplace-linux-386
bdo-marketplace-linux-amd64
bdo-marketplace-windows-x8632.exe
bdo-marketplace-windows-386.exe
bdo-marketplace-windows-amd64.exe
```
3. Upload CSV dump to your spreadsheet
4. Upload CSV dump to your spreadsheet
```
id,name,grade,enhancement,maximum,minimum,price,count
719898,Fallen God's Armor,1,0,30100000000,25900000000,28000000000,0
719898,Desperate Fallen God's Armor,1,1,30500000000,26300000000,28400000000,0
719898,Distorted Fallen God's Armor,1,2,32200000000,27800000000,30000000000,0
719898,Silent Fallen God's Armor,1,3,40500000000,34900000000,37700000000,0
719898,Fallen God's Armor,1,0,37700000000,32500000000,35100000000,0
719898,Desperate Fallen God's Armor,1,1,40500000000,34900000000,37700000000,0
719898,Distorted Fallen God's Armor,1,2,53500000000,46300000000,50000000000,1
719898,Silent Fallen God's Armor,1,3,65500000000,56500000000,61000000000,0
719898,Wailing Fallen God's Armor,1,4,122000000000,106000000000,114000000000,0
719898,Obliterating Fallen God's Armor,1,5,303000000000,261000000000,282000000000,0
7304,Strawberry,1,0,585,545,585,0
9065,Milk,0,0,10800,10000,10800,0
705511,Manos Ring,1,0,244000000,210000000,227000000,144
705511,Manos Ring,1,1,381000000,329000000,355000000,2
705511,Manos Ring,1,2,1130000000,985000000,1060000000,6
705511,Manos Ring,1,3,3830000000,3310000000,3570000000,5
705511,Manos Ring,1,4,17500000000,15100000000,16300000000,0
705511,Manos Ring,1,5,59000000000,55000000000,59000000000,0
```
4. Profit
5. Profit
3 changes: 1 addition & 2 deletions build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# GOOS=darwin GOARCH=386 go build -o bdo-marketplace-darwin32 &&
# GOOS=darwin GOARCH=arm64 go build -o bdo-marketplace-darwin-arm64 &&
GOOS=darwin GOARCH=arm64 go build -o bdo-marketplace-darwin-arm64 &&
GOOS=darwin GOARCH=amd64 go build -o bdo-marketplace-darwin-amd64 &&
GOOS=linux GOARCH=386 go build -o bdo-marketplace-linux-x8632 &&
GOOS=linux GOARCH=amd64 go build -o bdo-marketplace-linux-amd64 &&
Expand Down
2 changes: 1 addition & 1 deletion config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
"url": "https://marketweb-na.blackdesertonline.com",
"agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36",
"timeout": "1s"
}
}
3 changes: 3 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module github.com/kookehs/bdo-marketplace

go 1.16

0 comments on commit 328b813

Please sign in to comment.