Skip to content

Commit

Permalink
Merge pull request #7 from aseprite-quest/fix_build_system
Browse files Browse the repository at this point in the history
Fix build system
  • Loading branch information
5idereal authored Nov 19, 2023
2 parents ebbec16 + b574d7d commit 383c26e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Build

on: [push]

permissions:
contents: write

jobs:
build:
runs-on: ubuntu-latest
Expand Down
6 changes: 4 additions & 2 deletions build.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ def main():

package_json_file_path = os.path.join(data_dir, 'package.json')
with open(package_json_file_path, 'r', encoding='utf-8') as file:
version: str = json.loads(file.read())['version']
package_info: dict = json.loads(file.read())

extension_file_path = os.path.join(releases_dir, f'language-chinese-traditional-v{version}.aseprite-extension')
package_name: str = package_info['name']
package_version: str = package_info['version']
extension_file_path = os.path.join(releases_dir, f'{package_name}-v{package_version}.aseprite-extension')
with zipfile.ZipFile(extension_file_path, 'w') as file:
for file_dir, _, file_names in os.walk(data_dir):
for file_name in file_names:
Expand Down
4 changes: 2 additions & 2 deletions data/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aseprite-traditional-chinese-translation",
"displayName": "Aseprite Traditional Chinese Translation",
"name": "language-chinese-traditional",
"displayName": "Language - Chinese (Traditional)",
"description": "Translation to Traditional Chinese by SiderealArt",
"version": "1.3-rc6",
"author": {
Expand Down

0 comments on commit 383c26e

Please sign in to comment.