Skip to content

Commit 769cb14

Browse files
committed
standalone build for macOS aarch64
1 parent 5573556 commit 769cb14

File tree

3 files changed

+35
-8
lines changed

3 files changed

+35
-8
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/vendor
22
/.idea
3+
/.standalone
34
/.vscode
45
/.vagrant
56
/database/database.sqlite

README.md

+34-8
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,35 @@ You should seek the advice of a professional accountant before using this progra
5858

5959
## Installation
6060

61+
### Standalone application 🧪
62+
63+
> [!NOTE]
64+
> This is an experimental feature. Please [open an issue](#issue-reporting) if the application doesn't behave as expected.
65+
66+
Download the binary for your operating system:
67+
68+
| OS | Binary |
69+
| -- | ------ |
70+
| macOS aarch64 (M1, M2, M3...) | [dime-macos-aarch64](https://github.com/osteel/dime/releases/download/v0.3/dime-macos-aarch64) |
71+
72+
You can use the application straight away:
73+
74+
```
75+
$ php dime-your-os
76+
```
77+
78+
Or you may want to move it to a directory that is in your system's `PATH`:
79+
80+
```
81+
$ chmod +x dime-your-os
82+
$ mv dime-your-os /usr/local/bin/dime
83+
```
84+
85+
You can now run `dime` from anywhere instead of `php dime-your-os`.
86+
6187
### Composer
6288

63-
> **Note**
89+
> [!IMPORTANT]
6490
> Requires [Composer](https://getcomposer.org/) as well as PHP 8.2 and the [BCMath](https://www.php.net/manual/en/book.bc.php) extension.
6591
6692
You can instal Dime via [Composer](https://getcomposer.org):
@@ -93,7 +119,7 @@ $ source ~/.bash_profile
93119

94120
### PHAR (Linux / Unix / macOS)
95121

96-
> **Note**
122+
> [!IMPORTANT]
97123
> Requires PHP 8.2 and the [BCMath](https://www.php.net/manual/en/book.bc.php) extension.
98124
99125
<!-- phar -->
@@ -117,7 +143,7 @@ You can now run `dime` from anywhere instead of `php dime`.
117143

118144
### Docker
119145

120-
> **Note**
146+
> [!IMPORTANT]
121147
> Requires [Docker](https://www.docker.com/) and sh or Bash.
122148
123149
[Download this shell script](/.docker/dime.sh) and use it straight away:
@@ -157,7 +183,7 @@ $ dime process transactions.csv
157183

158184
It will validate and process each transaction and display the corresponding tax figures or report any errors.
159185

160-
> **Note**
186+
> [!NOTE]
161187
> You will need to run this command every time you update the spreadsheet.
162188
163189
See the [Spreadsheet format](#spreadsheet-format) section to learn how to report your transactions.
@@ -239,7 +265,7 @@ The market value is at the centre of Dime's calculation rules so it is crucial t
239265

240266
When the transaction includes a sent asset (and is not a transfer – transfers don't need a market value), you must use the sent asset's market value as the transaction's market value, _based on the reported sent quantity_ (see [Sent quantity](#sent-quantity) section below to learn how to report it correctly).
241267

242-
> **Note**
268+
> [!IMPORTANT]
243269
> Be particularly vigilant when selling an asset for some fiat currency. It is tempting to use the received fiat amount as the market value, but if a fee was taken, the actual market value is the received amount plus the fee's market value.
244270
245271
When the transaction does not include a sent asset (i.e. `receive` transactions), the transaction's market value is the received asset's market value.
@@ -255,7 +281,7 @@ Keeping in mind that when a transaction includes a sent asset, its market value
255281
* If using a decentralised protocol, use the value reported by the corresponding blockchain's explorer (see the value between brackets in the _Tokens Transferred_ section [here](https://etherscan.io/tx/0x2c9310e04c01e1329973c205cc6f3d3a7be3237ed09b968faef7ed85d9dfea65), for instance);
256282
* If none of the above applies, look up the asset on price-tracking websites such as [CoinMarketCap](https://coinmarketcap.com/) or [CoinGecko](https://www.coingecko.com/).
257283

258-
> **Note**
284+
> [!TIP]
259285
> If any of the above amounts are expressed in a foreign currency, use HMRC's [exchange rates](https://www.gov.uk/government/publications/hmrc-exchange-rates-for-2023-monthly "HMRC exchange rates for 2023: monthly") to convert them to pound sterling.
260286
261287
Sometimes, while the transaction includes a sent asset, its price isn't tracked anywhere. In that case, use the received asset's market value plus the fee's market value, if you paid for that fee.
@@ -280,7 +306,7 @@ The quantity sent. For NFTs, that would be `1`.
280306

281307
Be as precise as possible and report all available decimal places.
282308

283-
> **Note**
309+
> [!IMPORTANT]
284310
> When the sent asset and the [fee](#fee)'s currency are the same (e.g. GBP in both cases), _and the fee's quantity was deducted from the sent quantity_, the sent quantity must exclude the fee's quantity.
285311
> * Example #1: If you send £50 to an exchange and spend it all in a transaction that incurs a £0.50 fee, the sent quantity is 49.5.
286312
> * Example #2: If you swap 1 bitcoin for 10 ethers on an exchange and the transaction incurs a BTC 0.01 fee, the sent quantity is 0.99.
@@ -322,7 +348,7 @@ Different values must be used depending on the context:
322348

323349
The reason for the latter is that exchanges usually estimate how much the fee will be and charge that estimate. This amount is almost always different from the actual fee, but that's the amount you will be charged anyway.
324350

325-
> **Note**
351+
> [!TIP]
326352
> Be sure not to report fees that you didn't pay for. For instance, if you received an airdrop that was sent by the token issuer and the transaction includes a fee, the issuer paid for that fee, not you, so you don't have to report it.
327353
328354
Here is the detail of each fee-related column.

builds/dime-macos-aarch64

48.8 MB
Binary file not shown.

0 commit comments

Comments
 (0)