Skip to content

Commit babd5fa

Browse files
authored
Merge pull request #491 from kool-dev/drop-native-windows
Drop native windows support - guide to WSL2 adoption
2 parents 768eef9 + e20952a commit babd5fa

32 files changed

+29
-342
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
go-version: [1.21.x]
12-
os: [ubuntu-latest, macos-latest, windows-latest]
12+
os: [ubuntu-latest, macos-latest]
1313
runs-on: ${{ matrix.os }}
1414
steps:
1515
- name: Install Go
@@ -30,7 +30,7 @@ jobs:
3030
go mod download
3131
go install
3232
- name: Test
33-
if: matrix.os == 'macos-latest' || matrix.os == 'windows-latest'
33+
if: matrix.os == 'macos-latest'
3434
run: go test ./...
3535
- name: Test with code coverage
3636
if: matrix.os == 'ubuntu-latest'

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Requirements: Kool is powered by [Docker](https://docs.docker.com/get-docker/).
2727

2828
**Important**: make sure you are running the latest version of Docker and that you do have Compose V2 available (`docker compose`). You can read more about [Compose V2 release via its documentation](https://docs.docker.com/compose/reference/). Checkout out instructions for [installing Docker Compose V2 in the official documentation](https://docs.docker.com/compose/install/#scenario-two-install-the-compose-plugin).
2929

30-
### For Linux and macOS
30+
### For Linux and MacOS
3131

3232
Install **kool** by running the following script. It will download the latest **kool** binary from [https://github.com/kool-dev/kool/releases](https://github.com/kool-dev/kool/releases), and save it in your `/usr/local/bin` folder.
3333

@@ -37,7 +37,7 @@ curl -fsSL https://kool.dev/install | bash
3737

3838
### For Windows
3939

40-
Install **kool** by downloading the appropriate installer from [https://github.com/kool-dev/kool/releases](https://github.com/kool-dev/kool/releases). At the bottom of the release notes for the latest version, expand the list of "Assets", and download the installer that matches your machine.
40+
You must run `kool` on Windows via [WSL - Windows Subsystem for Linux](https://learn.microsoft.com/en-us/windows/wsl/install) - once you have a WSL environment properly set up, make sure you have [Docker available on it](https://docs.docker.com/desktop/wsl/), then you can install the CLI as you would in any Linux or MacOS (see above).
4141

4242
## Getting Started
4343

@@ -50,7 +50,7 @@ To help you start building real-world applications, we've created Kool Presets a
5050
#### Popular stacks and frameworks
5151

5252
- **Node**: [NestJS](docs/2-Presets/NestJS.md), [AdonisJs](docs/2-Presets/AdonisJs.md), [Express.js](/docs/2-Presets/ExpressJS.md)
53-
- **PHP**: [Laravel](docs/2-Presets/Laravel.md), [Symfony](docs/2-Presets/Symfony.md), [CodeIgniter](docs/2-Presets/CodeIgniter.md)
53+
- **PHP**: [Laravel](docs/2-Presets/Laravel.md), [Laravel Octane](docs/2-Presets/Laravel+Octane.md), [Symfony](docs/2-Presets/Symfony.md), [CodeIgniter](docs/2-Presets/CodeIgniter.md)
5454
- **Javascript**: [Next.js](docs/2-Presets/NextJS.md), [NuxtJS](docs/2-Presets/NuxtJS.md)
5555
- **Others**: [Hugo](docs/2-Presets/Hugo.md), [WordPress](docs/2-Presets/WordPress.md)
5656

build_artifacts.sh

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ BUILD=(\
4545
"dist/kool-linux-amd64|--env GOOS=linux --env GOARCH=amd64" \
4646
"dist/kool-linux-arm6|--env GOOS=linux --env GOARCH=arm --env GOARM=6" \
4747
"dist/kool-linux-arm7|--env GOOS=linux --env GOARCH=arm --env GOARM=7" \
48-
"dist/kool-windows-amd64.exe|--env GOOS=windows --env GOARCH=amd64" \
4948
"dist/kool-linux-arm64|--env GOOS=linux --env GOARCH=arm64" \
5049
)
5150

@@ -62,15 +61,6 @@ for i in "${!BUILD[@]}"; do
6261
-o $dist
6362
done
6463

65-
echo "Building kool-install.exe"
66-
67-
cp dist/kool-windows-amd64.exe dist/kool.exe
68-
69-
docker run --rm -i \
70-
-v $(pwd):/work -w /work \
71-
amake/innosetup /dApplicationVersion=$BUILD_VERSION inno-setup/kool.iss
72-
mv inno-setup/Output/mysetup.exe dist/kool-install.exe
73-
7464
echo "Going to generate CHECKSUMS"
7565

7666
for file in dist/*; do

commands/create_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//go:build !windows
2-
// +build !windows
3-
41
package commands
52

63
import (

commands/root_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//go:build !windows
2-
// +build !windows
3-
41
package commands
52

63
import (

commands/root_test_windows.go

Lines changed: 0 additions & 18 deletions
This file was deleted.

commands/run_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//go:build !windows
2-
// +build !windows
3-
41
package commands
52

63
import (

core/environment/asuser.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//go:build !windows
2-
// +build !windows
3-
41
package environment
52

63
func initAsuser(envStorage EnvStorage) {

core/environment/asuser_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
//go:build !windows
2-
// +build !windows
3-
41
package environment
52

63
import (

core/environment/asuser_test_windows.go

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)