diff --git a/.github/workflows/alpha.yml b/.github/workflows/alpha.yml index a4591c9e..5981d133 100644 --- a/.github/workflows/alpha.yml +++ b/.github/workflows/alpha.yml @@ -14,6 +14,7 @@ jobs: uses: ./.github/workflows/reusable-build-workflow.yml with: bundle_id: "com.SideStore.SideStore.Alpha" + bundle_id_suffix: ".Alpha" is_beta: true publish: true is_shared_build_num: false diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index ff8a31c0..ff6ef8bd 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -61,6 +61,7 @@ jobs: uses: ./.github/workflows/reusable-build-workflow.yml with: bundle_id: "com.SideStore.SideStore.Nightly" + bundle_id_suffix: ".Nightly" is_beta: true publish: true is_shared_build_num: false diff --git a/.github/workflows/reusable-build-workflow.yml b/.github/workflows/reusable-build-workflow.yml index 7e13ca80..385f2be5 100644 --- a/.github/workflows/reusable-build-workflow.yml +++ b/.github/workflows/reusable-build-workflow.yml @@ -30,6 +30,10 @@ on: default: com.SideStore.SideStore required: true type: string + bundle_id_suffix: + default: '' + required: false + type: string secrets: # GITHUB_TOKEN: @@ -217,6 +221,7 @@ jobs: - name: Build SideStore # using 'tee' to intercept stdout and log for detailed build-log run: | + echo "BUNDLE_ID_SUFFIX=${{ inputs.bundle_id_suffix }}" >> $GITHUB_ENV NSUnbufferedIO=YES make build 2>&1 | tee build.log | xcbeautify --renderer github-actions && exit ${PIPESTATUS[0]} - name: Fakesign app diff --git a/update_apps.py b/update_apps.py index b25f0e1c..8cfadcb3 100755 --- a/update_apps.py +++ b/update_apps.py @@ -106,7 +106,12 @@ new_version = { "size": SIZE, "sha256": SHA256, } -versions.insert(0, new_version) + +if versions is []: + versions.append(new_version) +else: + # versions.insert(0, new_version) # insert at front + versions[0] = new_version # replace top one # Save the updated JSON to the input file try: