Skip to content

Commit

Permalink
test ryzenadj
Browse files Browse the repository at this point in the history
  • Loading branch information
alvindimas05 committed Sep 25, 2024
1 parent ec4eaea commit 3b48bd1
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 14 deletions.
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
curl -sL https://raw.githubusercontent.com/alvindimas05/AMDHelper/main/install_ryzenadj.sh | bash

echo "Installing AMDHelper..."
curl -sSL https://github.com/alvindimas05/AMDHelper/releases/latest/download/amdhelper.gz -o amdhelper.gz
tar -xvzf amdhelper.gz
rm amdhelper.gz
chmod +x amdhelper
sudo mv amdhelper /usr/local/bin
sudo mv amdhelper /usr/local/bin/amdhelper
echo "AMDHelper installed! Run the command below to start."
echo "sudo amdhelper"
4 changes: 4 additions & 0 deletions install_ryzenadj.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
echo "Installing ryzenadj..."
sudo curl -sSL https://raw.githubusercontent.com/alvindimas05/Ryzentosh-Vivobook-16x-M1603QA/refs/heads/main/ryzenadj -o /usr/local/bin/ryzenadj
sudo chmod +x /usr/local/bin/ryzenadj
sudo xattr -c /usr/local/bin/ryzenadj
Binary file added ryzenadj
Binary file not shown.
1 change: 0 additions & 1 deletion src/commandline.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ export default class CommandLine {
if(global.chromiumApps.length > 0){
console.log("Applying chromium apps patch...");

let runBash = false;
const macosVersion = (await exec("sw_vers -productVersion")).stdout;
const majorVersion = parseInt(macosVersion.split(".")[0]);
const minorVersion = parseInt(macosVersion.split(".")[1]);
Expand Down
2 changes: 1 addition & 1 deletion src/patches/chromium.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export default class Chromium extends AppPatch {
}

async function killPatchProcess(){
try { await exec(`pkill -f bash`) } catch {}
// try { await exec(`pkill -f bash`) } catch {}
try { await exec(`pkill -f amdhelper_chromium`) } catch {}
}

Expand Down
11 changes: 0 additions & 11 deletions src/patches/firefox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,9 @@ export default class Firefox extends AppPatch {
"Firefox",
"Profiles",
);
// prefPath: string
constructor(appName: string) {
super(appName);
// this.setPrefPath();
}
// setPrefPath(){
// if(this.supported() && fs.existsSync(this.firefoxPath)){
// fs.readdirSync(this.firefoxPath).forEach(dir => {
// if(dir.endsWith(this.prefPathName)){
// this.prefPath = path.join(this.firefoxPath, dir, "prefs.js");
// }
// });
// }
// }
supported(): boolean {
return this.appName === this.originalAppName;
}
Expand Down

0 comments on commit 3b48bd1

Please sign in to comment.