Skip to content

Commit

Permalink
Merge pull request #4 from wrobeljakub/master
Browse files Browse the repository at this point in the history
Rewritten to c#
  • Loading branch information
unrooted authored Jan 8, 2021
2 parents a1beeb9 + 98f434f commit d27ea04
Show file tree
Hide file tree
Showing 19 changed files with 637 additions and 243 deletions.
2 changes: 2 additions & 0 deletions .gitignore.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
easyWSL\bin
easyWSL\obj
Binary file added .vs/easyWSL/v16/.suo
Binary file not shown.
62 changes: 38 additions & 24 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,24 +1,38 @@
This is free and unencumbered software released into the public domain.

Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

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 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.

For more information, please refer to <https://unlicense.org>
# easyWSL

Copyright (c) 2020 RedCode-Labs and Jakub Wróbel

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:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

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.

# bsdtar

All of the C source code and documentation in this package is subject
to the following:

Copyright (c) 2003-2006 Tim Kientzle
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer
in this position and unchanged.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) ``AS IS'' AND ANY EXPRESS OR
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 changes: 16 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,22 @@
</p>

<p align="center">
Create custom WSL distros and manage them easily
Create WSL distros based on Docker Images.
</p>

## Instructions
> Made with ❤ by @wrobeljakub and @redcode-labs team.
1. Clone and go to the dir. of this repository.
1. `git clone https://github.com/Unrooted/easyWSL`
2. `cd easyWSL`
2. Change the post-installation script already. Use commands dependent on the container of your choice.
3. Run Powershell script as an administrator.
4. Click `Yes` and install Docker, continuing with the installation instructions from the .exe
5. Your system needs to be rebooted. After a reboot, the script will continue to run.
6. After the script is done, everything is done! Feel free and enjoy your Docker-container-based WSL distro!
## What does this project do?

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.

## How to use it?

Just go to our release page, download latest release and just run it. Done!

## Command List

`--help` / `-h` -> list all available commands
`--name` / `-n` -> name for your distro
`--distro` / `-d` -> id of the distro in the sources.json file
`--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)
Binary file modified easyWSL.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
209 changes: 0 additions & 209 deletions easyWSL.ps1

This file was deleted.

37 changes: 37 additions & 0 deletions easyWSL.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30804.86
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "easyWSL", "easyWSL\easyWSL.csproj", "{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Debug|x64.ActiveCfg = Debug|x64
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Debug|x64.Build.0 = Debug|x64
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Debug|x86.ActiveCfg = Debug|Any CPU
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Debug|x86.Build.0 = Debug|Any CPU
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Release|Any CPU.Build.0 = Release|Any CPU
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Release|x64.ActiveCfg = Release|x64
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Release|x64.Build.0 = Release|x64
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Release|x86.ActiveCfg = Release|Any CPU
{7B9B61FA-2500-40CD-A3AC-08C7C67832B6}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {0E034EA1-614B-4CCB-AD51-9DC2A3CE510C}
EndGlobalSection
EndGlobal
6 changes: 6 additions & 0 deletions easyWSL/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>
Loading

0 comments on commit d27ea04

Please sign in to comment.