Skip to content

Commit 8d7ace5

Browse files
committed
Bump to v1.0.45-alpha (matrix-rust-sdk d720861fbd5d3ded30baa2558d667bcbf7a7057a)
1 parent ce0b5d7 commit 8d7ace5

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
import PackageDescription
55

6-
let checksum = "a121dc4aff9b38217681589993d087ebba2db19af6b0ac93f8b50e752d6b57db"
7-
let version = "v1.0.44-alpha"
6+
let checksum = "8419eabe38a20df243f0d403c2db7fced158d865c1ec5c495c0de47bd8eb4116"
7+
let version = "v1.0.45-alpha"
88
let url = "https://github.com/matrix-org/matrix-rust-components-swift/releases/download/\(version)/MatrixSDKFFI.xcframework.zip"
99

1010
let package = Package(

Tools/Scripts/README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Scripts
22

33
## Release
4-
Creates a Github release from a matrix-rust-sdk repository. Set `GITHUB_TOKEN` environment variable before using.
4+
Creates a Github release from a matrix-rust-sdk repository.
55

66
Usage:
77
```
@@ -13,6 +13,8 @@ For help: `release.py -h`
1313
## Requirements
1414

1515
To make the release you will need the following installed:
16-
1. cargo + rustup https://www.rust-lang.org/tools/install
17-
2. matrix-rust-sdk cloned next to this repo `git clone https://github.com/matrix-org/matrix-rust-sdk`
18-
3. Any dependencies required to build the matrix-rust-sdk as mentioned in the [Apple platforms readme](https://github.com/matrix-org/matrix-rust-sdk/blob/main/bindings/apple/README.md).
16+
1. Set `api.github.com` in your .netrc file before using
17+
2. cargo + rustup https://www.rust-lang.org/tools/install
18+
3. matrix-rust-sdk cloned next to this repo `git clone https://github.com/matrix-org/matrix-rust-sdk`
19+
4. Checkout the `main` branch of the SDK. Using a different branch will result in the wrong commit SHA.
20+
5. Any dependencies required to build the matrix-rust-sdk as mentioned in the [Apple platforms readme](https://github.com/matrix-org/matrix-rust-sdk/blob/main/bindings/apple/README.md).

Tools/Scripts/release.py

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,15 @@
88
from pathlib import Path
99
import requests
1010
import json
11+
import netrc
12+
13+
# Get the GitHub token from the user's .netrc
14+
secrets = netrc.netrc()
15+
username, account, github_token = secrets.authenticators('api.github.com')
16+
17+
if github_token is None:
18+
print("Please set api.github.com in your .netrc file.")
19+
exit(1)
1120

1221
parser = argparse.ArgumentParser()
1322
parser.add_argument('--version', type=str, help='Version of the release', required=True)
@@ -42,12 +51,6 @@ def remove_suffix(string, suffix):
4251
zip_file_name = "MatrixSDKFFI.xcframework.zip"
4352
os.system("pushd " + sdk_path + sdk_generated_path + "/; zip -r " + root + "/" + zip_file_name + " MatrixSDKFFI.xcframework; popd")
4453

45-
github_token = os.environ['GITHUB_TOKEN']
46-
47-
if github_token is None:
48-
print("Please set GITHUB_TOKEN environment variable")
49-
exit(1)
50-
5154
print("Creating release")
5255
checksum = subprocess.getoutput("shasum -a 256 " + root + "/" + zip_file_name).split()[0]
5356

0 commit comments

Comments
 (0)