Skip to content

Commit

Permalink
feat(windows): add install script for start menu
Browse files Browse the repository at this point in the history
  • Loading branch information
nguyenvukhang committed Feb 1, 2023
1 parent 18cf92c commit ef92778
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ jobs:
shell: bash
run: |
mv build/CanvasSync.exe \
deploy/windows/packages/com.nguyenvukhang.canvassync/data
'deploy/windows/packages/com.nguyenvukhang.canvassync/data/Canvas Sync.exe'
cd deploy/windows/packages/com.nguyenvukhang.canvassync/data
$Qt6_DIR/bin/windeployqt.exe CanvasSync.exe
$Qt6_DIR/bin/windeployqt.exe 'Canvas Sync.exe'
- name: Package the installer
shell: bash
Expand Down
3 changes: 2 additions & 1 deletion deploy/windows/config/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@
<Version>1.0.0</Version>
<Title>Canvas Sync Installer</Title>
<Publisher>Nguyen Vu Khang</Publisher>
<TargetDir>@ApplicationsDir@/CanvasSync</TargetDir>
<StartMenuDir>Canvas Sync</StartMenuDir>
<TargetDir>@ApplicationsDir@/Canvas Sync</TargetDir>
</Installer>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Component.prototype.createOperations = function()
{
component.createOperations();
if (systemInfo.productType === "windows") {
component.addOperation("CreateShortcut", "@TargetDir@/Canvas Sync.exe", "@StartMenuDir@/Canvas Sync.lnk",
"workingDirectory=@TargetDir@", "description=Open Canvas Sync");
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="utf-8"?>
<Package>
<DisplayName>Canvas Sync</DisplayName>
<Description>Syncs local folders with folders on canvas.</Description>
<Version>0.1.1</Version>
<ReleaseDate>2023-02-01</ReleaseDate>
<Default>true</Default>
<DisplayName>Canvas Sync</DisplayName>
<Description>Syncs local folders with folders on canvas.</Description>
<Version>0.1.3</Version>
<ReleaseDate>2023-02-01</ReleaseDate>
<Default>true</Default>
<Script>installscript.qs</Script>
</Package>

0 comments on commit ef92778

Please sign in to comment.