Skip to content

Commit

Permalink
sanity check the first run env var.
Browse files Browse the repository at this point in the history
  • Loading branch information
KenCorma committed Nov 16, 2024
1 parent de90276 commit 5700537
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/actions/build/windows/todesktop/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,4 @@ runs:
GITHUB_TOKEN: ${{ inputs.GITHUB_TOKEN }}
TODESKTOP_EMAIL: ${{ inputs.TODESKTOP_EMAIL}}
TODESKTOP_ACCESS_TOKEN: ${{inputs.TODESKTOP_ACCESS_TOKEN}}
run: |
cd assets
ls
run: yarn run publish
6 changes: 5 additions & 1 deletion scripts/todesktop/postInstall.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ async function postInstall() {

if (!firstInstallOnToDesktopServers) return;

console.log(process.env);

console.log('After Yarn Install ' , os.platform());

if (process.env.TODESKTOP_INITIAL_INSTALL_PHASE){

if (os.platform() === "win32")
{
// Change stdio to get back the logs if there are issues.
Expand Down Expand Up @@ -52,7 +56,7 @@ async function postInstall() {
fs.rmSync(path.join('./assets', tgzFile));
}
});

}
};

postInstall();

0 comments on commit 5700537

Please sign in to comment.