forked from Koniverse/SubWallet-Extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,6 +66,15 @@ jobs: | |
nextcloud-url: 'https://file.cdmteck.com' | ||
nextcloud-username: ${{ secrets.NEXTCLOUD_USERNAME }} | ||
nextcloud-password: ${{ secrets.NEXTCLOUD_PASSWORD }} | ||
- name: Upload to Build Firefox to Nextcloud | ||
id: nextcloud_upload_firefox | ||
uses: trympet/nextcloud-artifacts-action@v2 | ||
with: | ||
name: '${{ steps.setup_params.outputs.ref }}-build-firefox-${{ steps.setup_params.outputs.time_tag }}' | ||
path: 'master-build-firefox.zip' | ||
nextcloud-url: 'https://file.cdmteck.com' | ||
nextcloud-username: ${{ secrets.NEXTCLOUD_USERNAME }} | ||
nextcloud-password: ${{ secrets.NEXTCLOUD_PASSWORD }} | ||
- name: Deploy Webrunner to Netlify | ||
id: netlify_deployment | ||
uses: nwtgck/[email protected] | ||
|
@@ -91,4 +100,5 @@ jobs: | |
description: | | ||
The Deployment has been completed. | ||
- Extension: ${{ steps.nextcloud_upload.outputs.SHAREABLE_URL }} | ||
- Extension (Firefox): ${{ steps.nextcloud_upload_firefox.outputs.SHAREABLE_URL }} | ||
- Web-runner: ${{ steps.netlify_deployment.outputs.deploy-url }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ jobs: | |
yarn install --immutable | grep -v 'YN0013' | ||
yarn ${{ matrix.step }} | ||
- name: Upload to Build to Nextcloud | ||
- name: Upload Build to Nextcloud | ||
id: nextcloud_upload | ||
uses: trympet/nextcloud-artifacts-action@v2 | ||
with: | ||
|
@@ -42,6 +42,16 @@ jobs: | |
nextcloud-username: ${{ secrets.NEXTCLOUD_USERNAME }} | ||
nextcloud-password: ${{ secrets.NEXTCLOUD_PASSWORD }} | ||
|
||
- name: Upload Firefox Build to Nextcloud | ||
id: nextcloud_upload_firefox | ||
uses: trympet/nextcloud-artifacts-action@v2 | ||
with: | ||
name: 'master-build-firefox.zip' | ||
path: 'master-build-firefox.zip' | ||
nextcloud-url: 'https://file.cdmteck.com' | ||
nextcloud-username: ${{ secrets.NEXTCLOUD_USERNAME }} | ||
nextcloud-password: ${{ secrets.NEXTCLOUD_PASSWORD }} | ||
|
||
- name: Deploy Webrunner to Netlify | ||
id: netlify_deployment | ||
uses: nwtgck/[email protected] | ||
|
@@ -68,4 +78,5 @@ jobs: | |
description: | | ||
Master is completed. | ||
- Extension: ${{ steps.nextcloud_upload.outputs.SHAREABLE_URL }} | ||
- Extension (Firefox): ${{ steps.nextcloud_upload_firefox.outputs.SHAREABLE_URL }} | ||
- Web-runner: ${{ steps.netlify_deployment.outputs.deploy-url }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import fs from 'fs/promises'; | ||
import path from 'path'; | ||
|
||
async function updateManifest() { | ||
const filePath = path.resolve('./packages/extension-koni/build/manifest.json'); | ||
|
||
try { | ||
// Read the manifest.json file | ||
const data = await fs.readFile(filePath, 'utf8'); | ||
const manifest = JSON.parse(data); | ||
|
||
// Update the "background" property | ||
if (manifest.background && manifest.background['service-worker']) { | ||
manifest.background = { | ||
script: manifest.background['service-worker'] | ||
}; | ||
} | ||
|
||
// Write the updated manifest back to the file | ||
await fs.writeFile(filePath, JSON.stringify(manifest, null, 2)); | ||
console.log('manifest.json has been updated successfully.'); | ||
} catch (error) { | ||
console.error('Error updating manifest.json:', error); | ||
} | ||
} | ||
|
||
updateManifest(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters