diff --git a/.github/workflows/prod-desktop.yml b/.github/workflows/prod-desktop.yml index ef6058be..e58efab2 100644 --- a/.github/workflows/prod-desktop.yml +++ b/.github/workflows/prod-desktop.yml @@ -48,12 +48,12 @@ jobs: - name: Sync electron package run: cd ./materialious && npx cap sync @capacitor-community/electron - - name: Install electron modules - run: cd ./materialious/electron && npm install - - name: Patch capacitor plugin run: cd ./materialious/electron && python patch_capacitor_plugin.py + - name: Install electron modules + run: cd ./materialious/electron && npm install + - name: Set up environment variables run: echo "GH_TOKEN=${{ secrets.GITHUB_TOKEN }}" >> $GITHUB_ENV shell: bash diff --git a/materialious/electron/patch_capacitor_plugin.py b/materialious/electron/patch_capacitor_plugin.py index a8fce612..0a1eb8d4 100644 --- a/materialious/electron/patch_capacitor_plugin.py +++ b/materialious/electron/patch_capacitor_plugin.py @@ -3,7 +3,6 @@ import json import os -import subprocess WORKING_DIR = os.path.dirname(os.path.realpath(__file__)) @@ -33,8 +32,6 @@ def run(): with open(PACKAGE_JSON, "w") as f_: f_.write(json.dumps(package, indent="\t")) - subprocess.call(["npm", "install"]) - if __name__ == "__main__": run()