Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
xtyxtyx committed Nov 7, 2024
1 parent 3b12d7c commit 0ff59cc
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
on:
push:
branches:
- main
pull_request:
branches:
- main
# push:
# branches:
# - main
# pull_request:
# branches:
# - main
workflow_dispatch:
inputs:
skip_release:
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ This repo is dedicated to building Skia binaries for use in [Skiko](https://gith

## Prebuilt binaries

Prebuilt binaries can be found [in releases](https://github.com/JetBrains/skia-pack/releases).
Prebuilt binaries can be found [in releases](https://github.com/ShaftUI/skia-pack/releases).

## Building next version of Skia

1. Find the release commit in [Skia repository](https://github.com/google/skia) (look for chrome/mXXX branch)
2. Rebase `skiko` branch in [Skia fork repository](https://github.com/JetBrains/skia) on this commit and force push
3. Update `version` in [.github/workflows/build.yml](https://github.com/JetBrains/skia-pack/blob/master/.github/workflows/build.yml).
3. Update `version` in [.github/workflows/build.yml](https://github.com/ShaftUI/skia-pack/blob/master/.github/workflows/build.yml).

## Building locally

Expand Down
2 changes: 1 addition & 1 deletion script/check_release.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def main():
classifier = common.classifier()

try:
resp = urllib.request.urlopen(urllib.request.Request('https://api.github.com/repos/JetBrains/skia-pack/releases/tags/' + version, headers=headers)).read()
resp = urllib.request.urlopen(urllib.request.Request('https://api.github.com/repos/ShaftUI/skia-pack/releases/tags/' + version, headers=headers)).read()
artifacts = [x['name'] for x in json.loads(resp.decode('utf-8'))['assets']]
zip = 'Skia-' + version + '-' + target + '-' + build_type + '-' + machine + classifier + '.zip'
if zip in artifacts:
Expand Down
4 changes: 2 additions & 2 deletions script/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def main():
headers = common.github_headers()

try:
resp = urllib.request.urlopen(urllib.request.Request('https://api.github.com/repos/JetBrains/skia-pack/releases/tags/' + version, headers=headers)).read()
resp = urllib.request.urlopen(urllib.request.Request('https://api.github.com/repos/ShaftUI/skia-pack/releases/tags/' + version, headers=headers)).read()
except urllib.error.URLError as e:
data = '{"tag_name":"' + version + '","name":"' + version + '"}'
resp = urllib.request.urlopen(urllib.request.Request('https://api.github.com/repos/JetBrains/skia-pack/releases', data=data.encode('utf-8'), headers=headers)).read()
resp = urllib.request.urlopen(urllib.request.Request('https://api.github.com/repos/ShaftUI/skia-pack/releases', data=data.encode('utf-8'), headers=headers)).read()
upload_url = re.match('https://.*/assets', json.loads(resp.decode('utf-8'))['upload_url']).group(0)

print('Uploading', zip, 'to', upload_url)
Expand Down

0 comments on commit 0ff59cc

Please sign in to comment.