Skip to content

Commit

Permalink
[172] hook colors dynamically, fix image bg
Browse files Browse the repository at this point in the history
  • Loading branch information
acquitelol committed Mar 23, 2023
1 parent 79e052d commit b8a0f1f
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 36 deletions.
Binary file modified Enmity_Patches/Optional/flowercord.deb
Binary file not shown.
Binary file removed Enmity_Patches/Required/Enmity.Debug.Official.deb
Binary file not shown.
Binary file added Enmity_Patches/Required/Enmity.Debug.deb
Binary file not shown.
Binary file modified Enmity_Patches/Required/K2genmity.Development.deb
Binary file not shown.
Binary file modified Tweaks/Flowercord/packages/flowercord_1.0.0_iphoneos-arm.deb
Binary file not shown.
4 changes: 2 additions & 2 deletions constants.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
IPA_FETCH_LINK: "https://cdn.discordapp.com/attachments/1085420899907412028/1085632339805225080/Discord_171.0_41170.ipa",
ENMITY_LOADER: "Enmity.Development.Github.deb",
IPA_FETCH_LINK: "https://cdn.discordapp.com/attachments/1085420899907412028/1088582494061871134/Discord_172.0_41639.ipa",
ENMITY_LOADER: "Enmity.Debug.deb",
GET_PATCH_TYPE(predicate, inputArg, truePredicate, falsePredicate, fallback) {
const out = predicate(inputArg);
switch (out) {
Expand Down
4 changes: 2 additions & 2 deletions constants.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {
IPA_FETCH_LINK: "https://cdn.discordapp.com/attachments/1085420899907412028/1085632339805225080/Discord_171.0_41170.ipa",
ENMITY_LOADER: "Enmity.Development.Github.deb",
IPA_FETCH_LINK: "https://cdn.discordapp.com/attachments/1085420899907412028/1088582494061871134/Discord_172.0_41639.ipa",
ENMITY_LOADER: "Enmity.Debug.deb",
GET_PATCH_TYPE<T, V>(predicate: Function, inputArg: V, truePredicate: T, falsePredicate: T, fallback: T): T {
const out: boolean = predicate(inputArg);
switch(out) {
Expand Down
21 changes: 5 additions & 16 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import { exec } from 'child_process';
import fs from 'fs';
import Constants from './constants.js';
const { Colors, FORMAT, IPA_FETCH_LINK, GET_PATCH_TYPE } = Constants;
const { Colors, IPA_FETCH_LINK, GET_PATCH_TYPE } = Constants;
const GLOBAL_DIST_DIR = GET_PATCH_TYPE((accessor) => process.argv[2] === accessor, "k2genmity", "Dist_K2genmity", "Dist", "Unused_Deb");
class States extends Colors {
constructor() {
Expand Down Expand Up @@ -156,15 +156,8 @@ const EntryPoint = async (index, ipaName) => {
const M = new Main('Tweak', 'Required Tweaks');
await M.Main(async () => {
await new Inject("Tweak", "all Required Tweaks", true, 'ls Enmity_Patches/Required').run(M, async (ipaName, patchName) => {
await Shell.run(`echo $PWD`, (stderr, stdout) => {
console.log({ stderr, stdout });
});
await Shell.run(`Azule/azule -i ${GLOBAL_DIST_DIR}/${ipaName}.ipa -o ${GLOBAL_DIST_DIR} -f $PWD/Enmity_Patches/Required/${patchName} -v -U & wait $!`, (stderr, stdout) => {
console.log({ stderr, stdout });
});
await Shell.run(`mv ${GLOBAL_DIST_DIR}/${ipaName}+${patchName}.ipa ${GLOBAL_DIST_DIR}/${ipaName}.ipa`, (stderr, stdout) => {
console.log({ stderr, stdout });
});
await Shell.run(`Azule/azule -i ${GLOBAL_DIST_DIR}/${ipaName}.ipa -o ${GLOBAL_DIST_DIR} -f $PWD/Enmity_Patches/Required/${patchName} -v -U & wait $!`);
await Shell.run(`mv ${GLOBAL_DIST_DIR}/${ipaName}+${patchName}.ipa ${GLOBAL_DIST_DIR}/${ipaName}.ipa`);
});
});
break;
Expand All @@ -186,12 +179,8 @@ const EntryPoint = async (index, ipaName) => {
const M = new Main('Tweak', "Optional Variations");
await M.Main(async () => {
await new Inject("Flowercord", 'Flowercord', false, "ls Enmity_Patches/Optional").run(M, async (ipaName, patchName) => {
await Shell.run(`Azule/azule -i ${GLOBAL_DIST_DIR}/${ipaName}.ipa -o ${GLOBAL_DIST_DIR} -f $PWD/Enmity_Patches/Optional/${patchName} -v -U & wait $!`, (stderr, stdout) => {
console.log({ stderr, stdout });
});
await Shell.run(`mv ${GLOBAL_DIST_DIR}/${ipaName}+${patchName}.ipa ${GLOBAL_DIST_DIR}/${ipaName}+Flowercord.ipa`, (stderr, stdout) => {
console.log({ stderr, stdout });
});
await Shell.run(`Azule/azule -i ${GLOBAL_DIST_DIR}/${ipaName}.ipa -o ${GLOBAL_DIST_DIR} -f $PWD/Enmity_Patches/Optional/${patchName} -v -U & wait $!`);
await Shell.run(`mv ${GLOBAL_DIST_DIR}/${ipaName}+${patchName}.ipa ${GLOBAL_DIST_DIR}/${ipaName}+Flowercord.ipa`);
});
});
break;
Expand Down
21 changes: 5 additions & 16 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import { exec, ExecException } from 'child_process';
import fs from 'fs';
import Constants from './constants.js';
const { Colors, FORMAT, IPA_FETCH_LINK, GET_PATCH_TYPE } = Constants
const { Colors, IPA_FETCH_LINK, GET_PATCH_TYPE } = Constants

const GLOBAL_DIST_DIR = GET_PATCH_TYPE((accessor: string) => process.argv[2] === accessor, "k2genmity", "Dist_K2genmity", "Dist", "Unused_Deb")

Expand Down Expand Up @@ -200,15 +200,8 @@ const EntryPoint = async (index: number, ipaName: string) => {
const M: Main = new Main('Tweak', 'Required Tweaks');
await M.Main(async (): Promise<void> => {
await new Inject("Tweak", "all Required Tweaks", true, 'ls Enmity_Patches/Required').run(M, async (ipaName: string, patchName: string) => {
await Shell.run(`echo $PWD`, (stderr, stdout) => {
console.log({ stderr, stdout})
})
await Shell.run(`Azule/azule -i ${GLOBAL_DIST_DIR}/${ipaName}.ipa -o ${GLOBAL_DIST_DIR} -f $PWD/Enmity_Patches/Required/${patchName} -v -U & wait $!`, (stderr, stdout) => {
console.log({ stderr, stdout })
})
await Shell.run(`mv ${GLOBAL_DIST_DIR}/${ipaName}+${patchName}.ipa ${GLOBAL_DIST_DIR}/${ipaName}.ipa`, (stderr, stdout) => {
console.log({ stderr, stdout })
})
await Shell.run(`Azule/azule -i ${GLOBAL_DIST_DIR}/${ipaName}.ipa -o ${GLOBAL_DIST_DIR} -f $PWD/Enmity_Patches/Required/${patchName} -v -U & wait $!`)
await Shell.run(`mv ${GLOBAL_DIST_DIR}/${ipaName}+${patchName}.ipa ${GLOBAL_DIST_DIR}/${ipaName}.ipa`)
})
})

Expand All @@ -232,12 +225,8 @@ const EntryPoint = async (index: number, ipaName: string) => {
const M: Main = new Main('Tweak', "Optional Variations");
await M.Main(async (): Promise<void> => {
await new Inject("Flowercord", 'Flowercord', false, "ls Enmity_Patches/Optional").run(M, async (ipaName: string, patchName: string) => {
await Shell.run(`Azule/azule -i ${GLOBAL_DIST_DIR}/${ipaName}.ipa -o ${GLOBAL_DIST_DIR} -f $PWD/Enmity_Patches/Optional/${patchName} -v -U & wait $!`, (stderr, stdout) => {
console.log({ stderr, stdout })
});
await Shell.run(`mv ${GLOBAL_DIST_DIR}/${ipaName}+${patchName}.ipa ${GLOBAL_DIST_DIR}/${ipaName}+Flowercord.ipa`, (stderr, stdout) => {
console.log({ stderr, stdout })
})
await Shell.run(`Azule/azule -i ${GLOBAL_DIST_DIR}/${ipaName}.ipa -o ${GLOBAL_DIST_DIR} -f $PWD/Enmity_Patches/Optional/${patchName} -v -U & wait $!`);
await Shell.run(`mv ${GLOBAL_DIST_DIR}/${ipaName}+${patchName}.ipa ${GLOBAL_DIST_DIR}/${ipaName}+Flowercord.ipa`)
})
})

Expand Down

0 comments on commit b8a0f1f

Please sign in to comment.