Skip to content
This repository has been archived by the owner on Mar 9, 2023. It is now read-only.

Commit

Permalink
fix linux adding system path
Browse files Browse the repository at this point in the history
  • Loading branch information
PXshadow committed May 11, 2021
1 parent 20c4840 commit be5a139
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Main.hx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ function main() {
default: setupLinux();
}
}
//https://docs.github.com/en/actions/reference/workflow-commands-for-github-actions#add-a-system-path-add-path
private function setupWindows() {
var folderName = "hl-1.11.0-win";
Sys.command("powershell.exe -Command wget -O hl.zip https://github.com/HaxeFoundation/hashlink/releases/download/1.11/" + folderName + ".zip");
Expand All @@ -19,10 +20,7 @@ private function setupLinux() {
Sys.setCwd("hashlink"); //change dir to hashlink
Sys.command("sudo make all");
Sys.command("sudo make install");
Sys.setCwd("..");
Sys.command("cp -r hashlink/* .");
Sys.putEnv("PATH",Sys.getEnv("PATH") + ":" + Sys.getCwd());
Sys.command("export PATH");
Sys.command('echo "' + Sys.getCwd() + '" >> ' + Sys.getEnv("GITHUB_PATH"));
}
private function setupMac() {
Sys.command('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"'); //setup homebrew
Expand Down

0 comments on commit be5a139

Please sign in to comment.