Skip to content

Commit

Permalink
Add GitHub Actions pipeline to build the installers. (#37)
Browse files Browse the repository at this point in the history
* GitHub Action pipeline builds and uploads the installers to a draft release after a manual trigger.
* Add a version number to the `.msi` filenames.
* Rework the PowerShell build scripts to make it easier to setup builds on CI or any other machine.
* Change from Visual Studio's "devenv.exe" to "devenv.com" in the build script, to show the logs.
* Change the configuration of the output `.ahk` and `.exe` files in the `_build` directory, for the most common configuration.
* Add any `_autohotkey` folder in the repo to the `.gitignore` file, used for an optional location of a portable AutoHotKey v1 distibution for build.
* Recreate the `SwitchApps.sln` file to fix errors.
* Tiny tweaks to README.md.
  • Loading branch information
dima-iholkin authored Aug 23, 2024
1 parent c2eb95d commit eb23d8f
Show file tree
Hide file tree
Showing 10 changed files with 253 additions and 170 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/build-installers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build installers
run-name: Build installers from "${{ github.ref_name }}" ${{ github.ref_type }} for a draft release
on: workflow_dispatch
jobs:
build:
runs-on: windows-2022
steps:
- name: Checkout the repo
uses: actions/checkout@v4

- name: Install AutoHotkey v1
shell: pwsh
run: |
$path = (Get-Item .).FullName + "\src\Installer\_scripts";
Write-Output "Path: $path";
Invoke-WebRequest "https://www.autohotkey.com/download/1.1/AutoHotkey_1.1.37.02.zip" -OutFile "$path\autohotkey.zip";
Expand-Archive -Path "$path\autohotkey.zip" -DestinationPath "$path\_autohotkey\" -Force;
Remove-Item -Path "$path\autohotkey.zip" -Force;
- uses: nuget/setup-nuget@v2
- run: nuget restore .\src\Installer\SwitchApps.sln

- name: Build the installers
shell: pwsh
run: |
.\src\Installer\_scripts\build_all_installers.ps1
- name: Upload the files to a draft release
uses: svenstaro/upload-release-action@2.9.0
with:
file: src/Installer/_build/SwitchApps*
file_glob: true
draft: true
release_name: SwitchApps ${{github.ref_name}} draft release
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
[Bb]uild/
bin/
obj/
_autohotkey/

# Visual Studio 2015/2017 cache/options directory
.vs/
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# <img src="https://upload.wikimedia.org/wikipedia/commons/thumb/4/49/Flag_of_Ukraine.svg/1920px-Flag_of_Ukraine.svg.png" width="32" alt="Ukrainian flag"> SwitchApps utility for Windows 10/11



**If you use `Alt + Tab` shortcut on Windows, this may be interesting to you.**

A new behavior for `Alt + Tab` and `Alt + Shift + Tab` keyboard shortcuts for Windows 10/11. It uses the current Taskbar order to switch between apps.
Expand Down Expand Up @@ -61,4 +62,4 @@ Please create an issue or discussion, if you noticed a bug or have questions.
## License

* **[MIT License](http://opensource.org/licenses/mit-license.php)**
* Copyright 2021 © <a href="https://github.com/dima-iholkin" target="_blank">Dima Iholkin</a>.
* Copyright 2021-2024 © <a href="https://github.com/dima-iholkin" target="_blank">Dima Iholkin</a>.
22 changes: 7 additions & 15 deletions src/Installer/SwitchApps.sln
Original file line number Diff line number Diff line change
@@ -1,34 +1,26 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31717.71
VisualStudioVersion = 17.9.34728.123
MinimumVisualStudioVersion = 10.0.40219.1
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "SwitchApps.Installer", "SwitchApps_Installer\SwitchApps_Installer.vdproj", "{D48468A1-C923-4418-AF83-C5293127FB0E}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SwitchApps.Library", "SwitchApps_Library\SwitchApps.Library.csproj", "{897ACB5A-470F-40C7-8C25-3DC1A38E831A}"
EndProject
Project("{54435603-DBB4-11D2-8724-00A0C9A8B90C}") = "SwitchApps.Installer", "SwitchApps_Installer\SwitchApps_Installer.vdproj", "{48A928FD-DBAB-4DFD-B1DA-F8558AEFAF59}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Default = Debug|Default
Release|Any CPU = Release|Any CPU
Release|Default = Release|Default
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{D48468A1-C923-4418-AF83-C5293127FB0E}.Debug|Any CPU.ActiveCfg = Debug
{D48468A1-C923-4418-AF83-C5293127FB0E}.Debug|Any CPU.Build.0 = Debug
{D48468A1-C923-4418-AF83-C5293127FB0E}.Debug|Default.ActiveCfg = Debug
{D48468A1-C923-4418-AF83-C5293127FB0E}.Release|Any CPU.ActiveCfg = Release
{D48468A1-C923-4418-AF83-C5293127FB0E}.Release|Any CPU.Build.0 = Release
{D48468A1-C923-4418-AF83-C5293127FB0E}.Release|Default.ActiveCfg = Release
{897ACB5A-470F-40C7-8C25-3DC1A38E831A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{897ACB5A-470F-40C7-8C25-3DC1A38E831A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{897ACB5A-470F-40C7-8C25-3DC1A38E831A}.Debug|Default.ActiveCfg = Debug|Any CPU
{897ACB5A-470F-40C7-8C25-3DC1A38E831A}.Debug|Default.Build.0 = Debug|Any CPU
{897ACB5A-470F-40C7-8C25-3DC1A38E831A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{897ACB5A-470F-40C7-8C25-3DC1A38E831A}.Release|Any CPU.Build.0 = Release|Any CPU
{897ACB5A-470F-40C7-8C25-3DC1A38E831A}.Release|Default.ActiveCfg = Release|Any CPU
{897ACB5A-470F-40C7-8C25-3DC1A38E831A}.Release|Default.Build.0 = Release|Any CPU
{48A928FD-DBAB-4DFD-B1DA-F8558AEFAF59}.Debug|Any CPU.ActiveCfg = Debug
{48A928FD-DBAB-4DFD-B1DA-F8558AEFAF59}.Debug|Any CPU.Build.0 = Debug
{48A928FD-DBAB-4DFD-B1DA-F8558AEFAF59}.Release|Any CPU.ActiveCfg = Release
{48A928FD-DBAB-4DFD-B1DA-F8558AEFAF59}.Release|Any CPU.Build.0 = Release
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1015,7 +1015,7 @@
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:FALSE"
"ProductVersion" = "8:2.1.1"
"ProductVersion" = "8:2.2.0"
"Manufacturer" = "8:Dima Iholkin"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:https://github.com/dima-iholkin/SwitchApps"
Expand Down
4 changes: 0 additions & 4 deletions src/Installer/SwitchApps_Library/SwitchApps.Library.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Microsoft.Deployment.WindowsInstaller, Version=3.0.0.0, Culture=neutral, PublicKeyToken=ce35f76fcda82bad, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\..\..\..\Program Files (x86)\WiX Toolset v3.11\SDK\Microsoft.Deployment.WindowsInstaller.dll</HintPath>
</Reference>
<Reference Include="Microsoft.Win32.TaskScheduler, Version=2.9.2.0, Culture=neutral, PublicKeyToken=e25603a88b3aa7da, processorArchitecture=MSIL">
<HintPath>..\packages\TaskScheduler.2.9.2\lib\net452\Microsoft.Win32.TaskScheduler.dll</HintPath>
</Reference>
Expand Down
Loading

0 comments on commit eb23d8f

Please sign in to comment.