Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2014,6 +2014,10 @@ function createObtainiumInstructions(app, brand) {
const repoUrl = `https://github.com/${CONFIG.owner}/${CONFIG.repo}`;
const obtainiumLatestUrl = "https://github.com/ImranR98/Obtainium/releases/latest";

const aboutAppForObtainium = "Auto-added using **NullStore**\n"
+ `${window.location.protocol}//${window.location.host}/?q=${encodeURIComponent(app?.appName)}\n\n`
+ "NOTE : Only edit app details in obtainium if you know what you are doing, it can break update tracker";

const rawSlug = app?.appKey || normalizeForSearch(app?.appName || "app");
const rawBrand = brand?.brandKey || normalizeForSearch(brand?.brandName || "brand");

Expand All @@ -2029,7 +2033,13 @@ function createObtainiumInstructions(app, brand) {

const mainPackageId = activeVariant?.packageName || getAppPackageId(app, brand, modalSelectedVariant, modalSelectedSubVariant);
const mainLabel = getObtainiumAppLabel(app?.appName || "App", brand?.brandName || "Brand", modalSelectedVariant, modalSelectedSubVariant);
const mainAdditionalSettings = { apkFilterRegEx: regexPattern };
const mainAdditionalSettings = {
fallbackToOlderReleases: true,
appName: mainLabel,
appAuthor: CONFIG.owner,
about: aboutAppForObtainium,
apkFilterRegEx: regexPattern
};
if (modalBuildFilter === "beta") {
mainAdditionalSettings.includePrereleases = true;
}
Expand Down Expand Up @@ -2059,7 +2069,13 @@ function createObtainiumInstructions(app, brand) {
const vLabel = getObtainiumAppLabel(app.appName, brand.brandName, v.variant, v.subVariant);
const vPackageId = v.packageName || getAppPackageId(app, brand, v.variant, v.subVariant);

const vAdditionalSettings = { apkFilterRegEx: vRegex };
const vAdditionalSettings = {
fallbackToOlderReleases: true,
appName: vLabel,
appAuthor: CONFIG.owner,
about: aboutAppForObtainium,
apkFilterRegEx: vRegex
};
if (modalBuildFilter === "beta") {
vAdditionalSettings.includePrereleases = true;
}
Expand Down Expand Up @@ -2113,7 +2129,7 @@ function createObtainiumInstructions(app, brand) {
return `
<div class="obtainium-instructions">
<div style="margin-bottom: 12px;">
Ensure that you have <strong>Obtainium</strong> installed (available on <a href="${obtainiumLatestUrl}" target="_blank" rel="noopener noreferrer">GitHub</a>). Use the <strong>Add to Obtainium</strong> button for a quick setup if it's available, or follow the steps below to add the app manually:
Ensure that you have <strong>Obtainium</strong> installed (available on <a href="${obtainiumLatestUrl}" target="_blank" rel="noopener noreferrer">GitHub</a>).<br><br>Use the <strong class="highlight">Add to Obtainium</strong> button for a quick setup (from step 4) if it's available, or follow the steps below to add the app manually:
</div>
<ol>
<li>Open Obtainium on your device.</li>
Expand All @@ -2124,10 +2140,11 @@ function createObtainiumInstructions(app, brand) {
<button class="copy-btn" onclick="copyToClipboard('${repoUrl}', 'Repository URL copied!')" type="button">Copy</button>
</div>
</li>
<li>Scroll down to <strong>Filter APKs by regular expression</strong> and enter:
<li>Scroll down to <strong>APK selection > Filter APKs/links by regular expression</strong> and enter:
${step4Content}
</li>
<li>To get beta updates, enable the <strong>Include Pre-releases</strong> toggle.</li>
<li>Make sure <strong>Fallback to older releases</strong> is checked, else obtainium will stop by checking last release assests.</li>
<li>Tap <strong>Add</strong> to begin downloading.</li>
</ol>
<div style="margin-top: 12px">
Expand Down
4 changes: 4 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -1816,6 +1816,10 @@ body.light-mode .download-btn {
}
}

.obtainium-instructions .highlight {
color: var(--accent-obtainium)
}

.obtainium-instructions ol {
padding-left: 20px;
display: flex;
Expand Down