Skip to content

Commit 2f5acfc

Browse files
authored
Self-extracting installer (#39)
* Update workflow to create a self-extracting exe * Update readme
1 parent 590d934 commit 2f5acfc

File tree

3 files changed

+27
-18
lines changed

3 files changed

+27
-18
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ jobs:
1313
targetplatform: [x86, x64]
1414

1515
env:
16-
RELEASE_PATH: ./bin/release
16+
OUTPUT_PATH: ./bin/release/${{ matrix.targetplatform }}
17+
INSTALLER_NAME: ${{ github.event.repository.name }}-${{ github.event.release.tag_name }}-${{ matrix.targetplatform }}.exe
18+
TARGET_PROJECT: ${{ github.event.repository.name }}.GUI
1719

1820
steps:
1921
- name: Clone repo
@@ -25,14 +27,19 @@ jobs:
2527
dotnet-version: '6.0.x'
2628

2729
- name: Build release
28-
run: dotnet publish Mosey.GUI/Mosey.GUI.csproj --configuration Release --output ${{ env.RELEASE_PATH }}/${{ matrix.targetplatform }} --runtime win-${{ matrix.targetplatform }} -p:PublishReadyToRun=true -p:PublishSingleFile=true --self-contained true
30+
run: |
31+
dotnet publish ${{ env.TARGET_PROJECT }}/${{ env.TARGET_PROJECT }}.csproj --configuration Release --output ${{ env.OUTPUT_PATH }} --runtime win-${{ matrix.targetplatform }} -p:IncludeNativeLibrariesForSelfExtract=true -p:PublishReadyToRun=true -p:PublishSingleFile=true --self-contained true
32+
Rename-Item -Path ${{ env.OUTPUT_PATH }}/${{ env.TARGET_PROJECT }}.exe -NewName ${{ github.event.repository.name }}.exe
33+
34+
- name: Build installer
35+
run: 7z a -sfx ${{ env.OUTPUT_PATH }}/${{ env.INSTALLER_NAME }} ${{ env.OUTPUT_PATH }}/*.exe ${{ env.OUTPUT_PATH }}/*.json
2936

3037
- name: Upload release
3138
uses: actions/upload-release-asset@v1.0.2
3239
env:
3340
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3441
with:
3542
upload_url: ${{ github.event.release.upload_url }}
36-
asset_path: ${{ env.RELEASE_PATH }}/${{ matrix.targetplatform }}/Mosey.exe
37-
asset_name: Mosey-${{ github.event.release.tag_name }}-${{ matrix.targetplatform }}.exe
43+
asset_path: ${{ env.OUTPUT_PATH }}/${{ env.INSTALLER_NAME }}
44+
asset_name: ${{ env.INSTALLER_NAME }}
3845
asset_content_type: binary/octet-stream

Mosey.GUI/Mosey.GUI.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
<Platforms>AnyCPU</Platforms>
1010
<PackageProjectUrl>https://github.com/Erik-White/Mosey</PackageProjectUrl>
1111
<RepositoryUrl>https://github.com/Erik-White/Mosey.git</RepositoryUrl>
12-
<Version>2.0.0</Version>
12+
<Version>2.0.1</Version>
1313
<Company />
1414
<PackageLicenseExpression>GPL-3.0-or-later</PackageLicenseExpression>
1515
<PackageTags>imaging, scan, scanning</PackageTags>
16-
<AssemblyVersion>2.0.0.0</AssemblyVersion>
17-
<FileVersion>2.0.0.0</FileVersion>
16+
<AssemblyVersion>2.0.1.0</AssemblyVersion>
17+
<FileVersion>2.0.1.0</FileVersion>
1818
<Description>Multi scanner interval imaging tool. Runs on Windows 7 and up</Description>
1919
<RepositoryType>git</RepositoryType>
2020
<StartupObject>

README.md

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,24 @@ Multi scanner interval imaging tool. Runs on Windows 7 and up
33

44
Get the [latest release](https://github.com/Erik-White/Mosey/releases)
55

6-
![Mosey scanning](Docs/images/scan_progress.gif "Mosey scanning")
7-
86
### Quick start
9-
- Download the [latest release](https://github.com/Erik-White/Mosey/releases) for your version of Windows (i.e. 32 or 64 bit)
107
- Install the latest drivers for your scanner, connect it and power it on
11-
- Run the executable
8+
- Install Mosey
9+
- Run `Mosey.exe`
1210
- Start scanning!
1311

14-
### Optional installation steps
15-
- Copy the executable to `C:\Program Files\Mosey` (or similar)
16-
- Create a shortcut to your desktop
12+
### Installation
13+
- Download the [latest release](https://github.com/Erik-White/Mosey/releases) for your version of Windows (i.e. 32 or 64 bit)
14+
- Move the installer to `%PROGRAMFILES%\Mosey`, or your chosen location
15+
- Run the self-extracting installer
16+
- (Optionally) create a shortcut on your desktop
1717

1818
### Screenshots
1919

20-
![Mosey main window](Docs/images/window_med.png "Mosey main window")
21-
22-
![Mosey during scanning](Docs/images/scanning_med.png "Mosey during scanning")
20+
![Mosey scanning](Docs/images/scan_progress.gif "Mosey scanning")
2321

24-
![Mosey options](Docs/images/options_med.png "Mosey options")
22+
<p float="left">
23+
<img src="Docs/images/window_med.png" alt="Mosey main window" width="32%"/>
24+
<img src="Docs/images/scanning_med.png" alt="Mosey during scanning" width="32%"/>
25+
<img src="Docs/images/options_med.png" alt="Mosey options" width="32%"/>
26+
</p>

0 commit comments

Comments
 (0)