You've already forked AstralRinth
forked from didirus/AstralRinth
Bump to v0.9.306
This commit is contained in:
2
.github/workflows/theseus-release.yml
vendored
2
.github/workflows/theseus-release.yml
vendored
@@ -125,7 +125,7 @@ jobs:
|
|||||||
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
|
TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}
|
||||||
|
|
||||||
- name: upload ${{ matrix.platform }}
|
- name: upload ${{ matrix.platform }}
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.platform }}
|
name: ${{ matrix.platform }}
|
||||||
path: |
|
path: |
|
||||||
|
|||||||
@@ -50,13 +50,14 @@
|
|||||||
<div class="markdown-body">
|
<div class="markdown-body">
|
||||||
<p>The new version of the AstralRinth launcher is available.</p>
|
<p>The new version of the AstralRinth launcher is available.</p>
|
||||||
<p>Your version is outdated. We recommend that you update to the latest version.</p>
|
<p>Your version is outdated. We recommend that you update to the latest version.</p>
|
||||||
<p>Warning:</p>
|
<p><strong>⚠️ Warning ⚠️</strong></p>
|
||||||
<p>
|
<p>
|
||||||
Before updating, make sure that you have saved all running instances and made a backup copy of the instances
|
Before updating, make sure that you have saved all running instances and made a backup copy of the instances
|
||||||
that are valuable to you. Remember that the authors of the product are not responsible for the breakdown of
|
that are valuable to you. Remember that the authors of the product are not responsible for the breakdown of
|
||||||
your files, so you should always make copies of them and keep them in a safe place.
|
your files, so you should always make copies of them and keep them in a safe place.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
<span>Source • Git Astralium</span>
|
||||||
<span>Version on remote server • <p id="releaseData" class="cosmic inline-fix"></p></span>
|
<span>Version on remote server • <p id="releaseData" class="cosmic inline-fix"></p></span>
|
||||||
<span>Version on local device •
|
<span>Version on local device •
|
||||||
<p class="cosmic inline-fix">v{{ version }}</p>
|
<p class="cosmic inline-fix">v{{ version }}</p>
|
||||||
|
|||||||
@@ -11,10 +11,8 @@ export const latestBetaCommitLink = ref('')
|
|||||||
export const launcherUrl = 'https://www.astralium.su/get/ar'
|
export const launcherUrl = 'https://www.astralium.su/get/ar'
|
||||||
|
|
||||||
const os = ref('')
|
const os = ref('')
|
||||||
const releaseLink = `https://api.github.com/repos/DIDIRUS4/AstralRinth/releases/latest`
|
const releaseLink = `https://git.astralium.su/api/v1/repos/didirus/AstralRinth/releases/latest`
|
||||||
const branchesLink = `https://api.github.com/repos/DIDIRUS4/AstralRinth/branches`
|
|
||||||
const failedFetch = [`Failed to fetch remote releases:`, `Failed to fetch remote commits:`]
|
const failedFetch = [`Failed to fetch remote releases:`, `Failed to fetch remote commits:`]
|
||||||
const betaBranch = `beta` // Github repository beta branch
|
|
||||||
const osNames = ['macos', 'windows', 'linux']
|
const osNames = ['macos', 'windows', 'linux']
|
||||||
const macExtension = `.dmg` // MacOS file type for download
|
const macExtension = `.dmg` // MacOS file type for download
|
||||||
const windowsExtension = `.msi` // Windows file type for download
|
const windowsExtension = `.msi` // Windows file type for download
|
||||||
@@ -28,45 +26,6 @@ const blacklistedBuilds = [
|
|||||||
`dirty_nightly`,
|
`dirty_nightly`,
|
||||||
] // This is blacklisted builds for download. For example, file.startsWith('dev') is not allowed.
|
] // This is blacklisted builds for download. For example, file.startsWith('dev') is not allowed.
|
||||||
|
|
||||||
/**
|
|
||||||
* Asynchronously fetches branches and their latest commit information from the specified URLs.
|
|
||||||
*
|
|
||||||
* @return {Promise<void>} This function does not return anything directly but updates the latestBetaCommitTruncatedSha and latestBetaCommitLink values.
|
|
||||||
*/
|
|
||||||
export async function getBranches() {
|
|
||||||
fetch(branchesLink)
|
|
||||||
.then(async (response) => {
|
|
||||||
if (response.ok) {
|
|
||||||
response.json().then((data) => {
|
|
||||||
const branches = data.map((branch) => branch)
|
|
||||||
branches.forEach((branch) => {
|
|
||||||
fetch(branch.commit.url).then(async (data) => {
|
|
||||||
if (data.ok) {
|
|
||||||
data.json().then((data) => {
|
|
||||||
const truncatedSha = data.sha.slice(0, 7)
|
|
||||||
const commitLink = data.html_url
|
|
||||||
if (branch.name.toLowerCase() == betaBranch) {
|
|
||||||
latestBetaCommitTruncatedSha.value = truncatedSha
|
|
||||||
latestBetaCommitLink.value = commitLink
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
throw new Error(data.status)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
throw new Error(response.status)
|
|
||||||
}
|
|
||||||
})
|
|
||||||
.catch((error) => {
|
|
||||||
latestBetaCommitTruncatedSha.value = error.message
|
|
||||||
latestBetaCommitLink.value = undefined
|
|
||||||
console.error(failedFetch[1], error)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Asynchronous function to get remote data and handle updates and downloads.
|
* Asynchronous function to get remote data and handle updates and downloads.
|
||||||
*
|
*
|
||||||
|
|||||||
@@ -44,7 +44,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"productName": "AstralRinth App",
|
"productName": "AstralRinth App",
|
||||||
"version": "0.9.305",
|
"version": "0.9.306",
|
||||||
"mainBinaryName": "AstralRinth App",
|
"mainBinaryName": "AstralRinth App",
|
||||||
"identifier": "AstralRinthApp",
|
"identifier": "AstralRinthApp",
|
||||||
"plugins": {
|
"plugins": {
|
||||||
@@ -82,7 +82,7 @@
|
|||||||
"capabilities": ["core", "plugins"],
|
"capabilities": ["core", "plugins"],
|
||||||
"csp": {
|
"csp": {
|
||||||
"default-src": "'self' customprotocol: asset:",
|
"default-src": "'self' customprotocol: asset:",
|
||||||
"connect-src": "https://api.github.com ipc: http://ipc.localhost https://modrinth.com https://*.modrinth.com https://*.posthog.com https://*.sentry.io https://api.mclo.gs",
|
"connect-src": "https://git.astralium.su ipc: http://ipc.localhost https://modrinth.com https://*.modrinth.com https://*.posthog.com https://*.sentry.io https://api.mclo.gs",
|
||||||
"font-src": ["https://cdn-raw.modrinth.com/fonts/inter/"],
|
"font-src": ["https://cdn-raw.modrinth.com/fonts/inter/"],
|
||||||
"img-src": "https: 'unsafe-inline' 'self' asset: http://asset.localhost blob: data:",
|
"img-src": "https: 'unsafe-inline' 'self' asset: http://asset.localhost blob: data:",
|
||||||
"style-src": "'unsafe-inline' 'self'",
|
"style-src": "'unsafe-inline' 'self'",
|
||||||
|
|||||||
Reference in New Issue
Block a user