Skip to content

Commit d27ea04

Browse files
authored
Merge pull request #4 from wrobeljakub/master
Rewritten to c#
2 parents a1beeb9 + 98f434f commit d27ea04

19 files changed

+637
-243
lines changed

.gitignore.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
easyWSL\bin
2+
easyWSL\obj

.vs/easyWSL/v16/.suo

58.5 KB
Binary file not shown.

LICENSE

Lines changed: 38 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,38 @@
1-
This is free and unencumbered software released into the public domain.
2-
3-
Anyone is free to copy, modify, publish, use, compile, sell, or
4-
distribute this software, either in source code form or as a compiled
5-
binary, for any purpose, commercial or non-commercial, and by any
6-
means.
7-
8-
In jurisdictions that recognize copyright laws, the author or authors
9-
of this software dedicate any and all copyright interest in the
10-
software to the public domain. We make this dedication for the benefit
11-
of the public at large and to the detriment of our heirs and
12-
successors. We intend this dedication to be an overt act of
13-
relinquishment in perpetuity of all present and future rights to this
14-
software under copyright law.
15-
16-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19-
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
20-
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
21-
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22-
OTHER DEALINGS IN THE SOFTWARE.
23-
24-
For more information, please refer to <https://unlicense.org>
1+
# easyWSL
2+
3+
Copyright (c) 2020 RedCode-Labs and Jakub Wróbel
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
10+
11+
# bsdtar
12+
13+
All of the C source code and documentation in this package is subject
14+
to the following:
15+
16+
Copyright (c) 2003-2006 Tim Kientzle
17+
All rights reserved.
18+
19+
Redistribution and use in source and binary forms, with or without
20+
modification, are permitted provided that the following conditions
21+
are met:
22+
1. Redistributions of source code must retain the above copyright
23+
notice, this list of conditions and the following disclaimer
24+
in this position and unchanged.
25+
2. Redistributions in binary form must reproduce the above copyright
26+
notice, this list of conditions and the following disclaimer in the
27+
documentation and/or other materials provided with the distribution.
28+
29+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
30+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
31+
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
32+
IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
33+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
34+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
35+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
37+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
38+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,22 @@
66
</p>
77

88
<p align="center">
9-
Create custom WSL distros and manage them easily
9+
Create WSL distros based on Docker Images.
1010
</p>
1111

12-
## Instructions
12+
> Made with ❤ by @wrobeljakub and @redcode-labs team.
1313
14-
1. Clone and go to the dir. of this repository.
15-
1. `git clone https://github.com/Unrooted/easyWSL`
16-
2. `cd easyWSL`
17-
2. Change the post-installation script already. Use commands dependent on the container of your choice.
18-
3. Run Powershell script as an administrator.
19-
4. Click `Yes` and install Docker, continuing with the installation instructions from the .exe
20-
5. Your system needs to be rebooted. After a reboot, the script will continue to run.
21-
6. After the script is done, everything is done! Feel free and enjoy your Docker-container-based WSL distro!
14+
## What does this project do?
15+
16+
There's a script inside which downloads a .tar or .tar.gz image from Docker Hub. In fact, it can be more than just one .tar/.tar.gz, that's why bsdtar.exe is included in this repo, because it is responsible for 'merging' all .tar/.tar.gz files together. Then, one big .tar/.tar.gz is created (if it's needed, we don't have to do this thing if the image contains just one layer) and can be easily exported as a WSL distro.
17+
18+
## How to use it?
19+
20+
Just go to our release page, download latest release and just run it. Done!
21+
22+
## Command List
23+
24+
`--help` / `-h` -> list all available commands
25+
`--name` / `-n` -> name for your distro
26+
`--distro` / `-d` -> id of the distro in the sources.json file
27+
`--path` / `-p` -> path where you want to place your .vhd (it's basically how WSL distros work, they're .tar/.tar.gz files turned into .vhd with Linux filesystems)

easyWSL.png

29.2 KB
Loading

easyWSL.ps1

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

easyWSL.sln

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30804.86
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "easyWSL", "easyWSL\easyWSL.csproj", "{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}"
7+
EndProject
8+
Global
9+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
10+
Debug|Any CPU = Debug|Any CPU
11+
Debug|x64 = Debug|x64
12+
Debug|x86 = Debug|x86
13+
Release|Any CPU = Release|Any CPU
14+
Release|x64 = Release|x64
15+
Release|x86 = Release|x86
16+
EndGlobalSection
17+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
18+
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
19+
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Debug|Any CPU.Build.0 = Debug|Any CPU
20+
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Debug|x64.ActiveCfg = Debug|x64
21+
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Debug|x64.Build.0 = Debug|x64
22+
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Debug|x86.ActiveCfg = Debug|Any CPU
23+
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Debug|x86.Build.0 = Debug|Any CPU
24+
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Release|Any CPU.ActiveCfg = Release|Any CPU
25+
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Release|Any CPU.Build.0 = Release|Any CPU
26+
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Release|x64.ActiveCfg = Release|x64
27+
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Release|x64.Build.0 = Release|x64
28+
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Release|x86.ActiveCfg = Release|Any CPU
29+
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Release|x86.Build.0 = Release|Any CPU
30+
EndGlobalSection
31+
GlobalSection(SolutionProperties) = preSolution
32+
HideSolutionNode = FALSE
33+
EndGlobalSection
34+
GlobalSection(ExtensibilityGlobals) = postSolution
35+
SolutionGuid = {0E034EA1-614B-4CCB-AD51-9DC2A3CE510C}
36+
EndGlobalSection
37+
EndGlobal

easyWSL/App.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<configuration>
3+
<startup>
4+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
5+
</startup>
6+
</configuration>

0 commit comments

Comments
 (0)