Skip to content

Commit

Permalink
update to 209
Browse files Browse the repository at this point in the history
  • Loading branch information
acquitelol committed Dec 11, 2023
1 parent acd67d8 commit 4b4a764
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 12 deletions.
Binary file modified Patches/Optional/flowercord.deb
Binary file not shown.
Binary file modified Patches/Required/SideloadFix.deb
Binary file not shown.
2 changes: 1 addition & 1 deletion constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ class States extends Colors {
}
class Constants {
}
Constants.IPA_FETCH_LINK = "https://ipa.aspy.dev/discord/testflight/Discord_208.0_52741.ipa";
Constants.IPA_FETCH_LINK = "https://ipa.aspy.dev/discord/testflight/Discord_208.0_52874.ipa";
export { Shell, Colors, Divider, States, Constants };
2 changes: 1 addition & 1 deletion constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class States extends Colors {
}

class Constants {
static IPA_FETCH_LINK = "https://ipa.aspy.dev/discord/testflight/Discord_208.0_52741.ipa";
static IPA_FETCH_LINK = "https://ipa.aspy.dev/discord/testflight/Discord_209.0_53119.ipa";
}

export { Shell, Colors, Divider, States, Constants };
Expand Down
12 changes: 7 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ const main = async () => {
await Shell.write(`${M.PINK}A project written by ${M.CYAN}Rosie${M.BLUE}/${M.CYAN}Acquite${M.ENDC}\n`);
await Shell.write(`${M.BLUE}This patcher is on version ${M.PINK}"${M.CYAN}${version}${M.PINK}"${M.ENDC}\n`);
await Shell.write(`${M.BLUE}Patching Discord Version ${M.PINK}"${M.CYAN}${IPA_NAME}${M.PINK}"${M.ENDC}\n`);
await Shell.write(`${M.BLUE}Patching Link ${M.PINK}"${M.CYAN}${IPA_LINK}${M.PINK}"${M.ENDC}\n`);
await Shell.write(`${S.PENDING}${M.RED} Running ${M.PINK}Legacy${M.RED} Patcher.${M.ENDC}\n`);
await D.logDivider();
await Shell.write(`${S.PENDING}${M.CYAN} Clearing existing ${M.PINK}\"IPAs\"${M.CYAN} in ${M.PINK}\"./Dist\".${M.ENDC}\r`);
await Shell.runSilently(`mkdir -p Dist/ & wait $!; rm -rf Dist/* & wait $!; rm -rf Payload & wait $!`, (stderr) => {
Expand Down Expand Up @@ -266,12 +268,12 @@ const main = async () => {
? `${S.FAILURE} An error occurred while Enabling ${M.PINK}\"UISupportsDocumentBrowser\"${M.RED} and ${M.PINK}\"UIFileSharingEnabled\"${M.RED}.${M.ENDC}\n`
: `${S.SUCCESS} Successfully Enabled ${M.PINK}\"UISupportsDocumentBrowser\"${M.GREEN} and ${M.PINK}\"UIFileSharingEnabled\"${M.GREEN}.${M.ENDC}\n`);
});
if (process.argv[2] == "k2genmity") {
await Shell.write(`${S.PENDING}${M.CYAN} Modifying ${M.PINK}\"NSFaceIDUsageDescription\"${M.CYAN} and adding ${M.PINK}\"K2genmity\"${M.CYAN}.${M.ENDC}\r`);
await Shell.run(`plutil -replace NSFaceIDUsageDescription -string "K2genmity" ${MAIN_PLIST} & wait $!`, (stderr) => {
if (process.argv[2] == "custom") {
await Shell.write(`${S.PENDING}${M.CYAN} Setting bundle ID to ${M.PINK}\"com.rosie.rosiecord\"${M.CYAN}...${M.ENDC}\r`);
await Shell.run(`plutil -replace CFBundleIdentifier -string "com.rosie.rosiecord" ${MAIN_PLIST} & wait $!`, (stderr) => {
Shell.write(stderr
? `${S.FAILURE} An error occurred while modifying ${M.PINK}\"NSFaceIDUsageDescription\"${M.RED}.${M.ENDC}\n`
: `${S.SUCCESS} Successfully modified ${M.PINK}\"NSFaceIDUsageDescription\"${M.GREEN} and added ${M.PINK}\"K2genmity\"${M.GREEN}.${M.ENDC}\n`);
? `${S.FAILURE} An error occurred while settting bundle ID to ${M.PINK}\"com.rosie.rosiecord\"${M.RED}.${M.ENDC}\n`
: `${S.SUCCESS} Successfully set bundle ID to ${M.PINK}\"com.rosie.rosiecord\"${M.CYAN}.${M.ENDC}\n`);
});
}
await D.logDivider();
Expand Down
12 changes: 7 additions & 5 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,8 @@ const main = async (): Promise<void> => {
await Shell.write(`${M.PINK}A project written by ${M.CYAN}Rosie${M.BLUE}/${M.CYAN}Acquite${M.ENDC}\n`)
await Shell.write(`${M.BLUE}This patcher is on version ${M.PINK}"${M.CYAN}${version}${M.PINK}"${M.ENDC}\n`)
await Shell.write(`${M.BLUE}Patching Discord Version ${M.PINK}"${M.CYAN}${IPA_NAME}${M.PINK}"${M.ENDC}\n`)
await Shell.write(`${M.BLUE}Patching Link ${M.PINK}"${M.CYAN}${IPA_LINK}${M.PINK}"${M.ENDC}\n`)
await Shell.write(`${S.PENDING}${M.RED} Running ${M.PINK}Legacy${M.RED} Patcher.${M.ENDC}\n`)

await D.logDivider();

Expand Down Expand Up @@ -332,12 +334,12 @@ const main = async (): Promise<void> => {
)
});

if (process.argv[2] == "k2genmity") {
await Shell.write(`${S.PENDING}${M.CYAN} Modifying ${M.PINK}\"NSFaceIDUsageDescription\"${M.CYAN} and adding ${M.PINK}\"K2genmity\"${M.CYAN}.${M.ENDC}\r`);
await Shell.run(`plutil -replace NSFaceIDUsageDescription -string "K2genmity" ${MAIN_PLIST} & wait $!`, (stderr) => {
if (process.argv[2] == "custom") {
await Shell.write(`${S.PENDING}${M.CYAN} Setting bundle ID to ${M.PINK}\"com.rosie.rosiecord\"${M.CYAN}...${M.ENDC}\r`);
await Shell.run(`plutil -replace CFBundleIdentifier -string "com.rosie.rosiecord" ${MAIN_PLIST} & wait $!`, (stderr) => {
Shell.write(stderr
? `${S.FAILURE} An error occurred while modifying ${M.PINK}\"NSFaceIDUsageDescription\"${M.RED}.${M.ENDC}\n`
: `${S.SUCCESS} Successfully modified ${M.PINK}\"NSFaceIDUsageDescription\"${M.GREEN} and added ${M.PINK}\"K2genmity\"${M.GREEN}.${M.ENDC}\n`
? `${S.FAILURE} An error occurred while settting bundle ID to ${M.PINK}\"com.rosie.rosiecord\"${M.RED}.${M.ENDC}\n`
: `${S.SUCCESS} Successfully set bundle ID to ${M.PINK}\"com.rosie.rosiecord\"${M.CYAN}.${M.ENDC}\n`
)
});
}
Expand Down

0 comments on commit 4b4a764

Please sign in to comment.