Skip to content

Commit

Permalink
chore: refactored artifact name.
Browse files Browse the repository at this point in the history
  • Loading branch information
cangzhang committed Apr 24, 2020
1 parent c4a7515 commit a1a2f5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ jobs:
- name: Upload artifacts
uses: actions/upload-artifact@v1.0.0
with:
name: champ-r-installer
name: ${{ steps.vars.outputs.fileName }}
path: "./dist/artifacts"
2 changes: 1 addition & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ function toggleMainWindow() {
}

function makeTray(tray) {
const iconPath = path.join(app.isPackaged ? process.resourcesPath : __dirname, `resources/app-icon.png`);
const iconPath = path.join(isDev ? __dirname : process.resourcesPath, `resources/app-icon.png`);
const icon = nativeImage.createFromPath(iconPath);
// const icon = nativeImage.createFromPath(iconPath).resize({ width: 16, height: 16 });
tray = new Tray(icon);
Expand Down

0 comments on commit a1a2f5a

Please sign in to comment.