Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Commit

Permalink
update github
Browse files Browse the repository at this point in the history
  • Loading branch information
k03mad committed Nov 17, 2023
1 parent 2e1551c commit 3810d52
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 28 deletions.
16 changes: 9 additions & 7 deletions app/cron/providers/_index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@ export {default as _03_common_telegram} from './common_telegram.js';
export {default as _04_fdroid} from './fdroid.js';
export {default as _05_github} from './github.js';
export {default as _06_github_adguard} from './github_adguard.js';
export {default as _07_github_darkmoonight} from './github_darkmoonight.js';
export {default as _08_github_youtube} from './github_youtube.js';
export {default as _09_github_simple} from './github_simple.js';
export {default as _10_bank} from './bank.js';
export {default as _11_bank_alfa} from './bank_alfa.js';
export {default as _12_bank_tinkoff} from './bank_tinkoff.js';
export {default as _13_bank_sber} from './bank_sber.js';
export {default as _07_github_streetcomplete} from './github_streetcomplete.js';
export {default as _08_github_darkmoonight} from './github_darkmoonight.js';
export {default as _09_github_youtube} from './github_youtube.js';
export {default as _10_github_termux} from './github_termux.js';
export {default as _11_github_simple} from './github_simple.js';
export {default as _12_bank} from './bank.js';
export {default as _13_bank_alfa} from './bank_alfa.js';
export {default as _14_bank_tinkoff} from './bank_tinkoff.js';
export {default as _15_bank_sber} from './bank_sber.js';
30 changes: 10 additions & 20 deletions app/cron/providers/github.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
import {getApkFromGhOrgs, getApkFromGhUsers} from './helpers/github.js';
import {getApkFromGhRepos} from './helpers/github.js';

/** */
export default async () => {
const links = await Promise.all([
getApkFromGhUsers([
{name: 'MuntashirAkon'},
{name: 'imranr98'},
{name: 'kyujin-cho'},
{name: 'massivemadness'},
]),
getApkFromGhOrgs([
{name: 'EtchDroid'},
{name: 'organicmaps'},
{name: 'RikkaApps'},
{name: 'streetcomplete'},
{name: 'termux'},
]),
]);

return links.flat();
};
export default () => getApkFromGhRepos([
{name: 'EtchDroid/EtchDroid'},
{name: 'imranr98/obtainium', re: {include: /arm64/}},
{name: 'kyujin-cho/pixel-volte-patch'},
{name: 'massivemadness/Squircle-CE', re: {include: /fdroid/}},
{name: 'MuntashirAkon/AppManager'},
{name: 'organicmaps/organicmaps'},
{name: 'RikkaApps/Shizuku'},
]);
6 changes: 6 additions & 0 deletions app/cron/providers/github_streetcomplete.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import {getApkFromGhOrgs} from './helpers/github.js';

const orgs = [{name: 'streetcomplete'}];

/** */
export default () => getApkFromGhOrgs(orgs);
6 changes: 6 additions & 0 deletions app/cron/providers/github_termux.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import {getApkFromGhOrgs} from './helpers/github.js';

const orgs = [{name: 'termux', re: {exclude: /universal|x86|v7a/}}];

/** */
export default () => getApkFromGhOrgs(orgs);
2 changes: 1 addition & 1 deletion utils/aapt.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export const getApkFileInfo = async apkFilePath => {
// ­
)?.replace(/\u00AD/g, '');

const version = aapt?.match(/versionName='(.+?)'/)?.[1]?.replace(/^v/, '');
const version = aapt?.match(/versionName='(.+?)'/)?.[1]?.replace(/^\D+/, '');
const pkg = aapt?.match(/name='(.+?)'/)?.[1];

const nativeCode = aapt?.match(/native-code: '(.+)'/)?.[1];
Expand Down

0 comments on commit 3810d52

Please sign in to comment.