Skip to content
This repository was archived by the owner on Jan 7, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified DistroLauncher-Appx/Assets/LargeTile.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/LargeTile.scale-125.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/LargeTile.scale-150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/LargeTile.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/LargeTile.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/SmallTile.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/SmallTile.scale-125.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/SmallTile.scale-150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/SmallTile.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/SmallTile.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/SplashScreen.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/SplashScreen.scale-125.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/SplashScreen.scale-150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/SplashScreen.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/SplashScreen.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/Square150x150Logo.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/Square150x150Logo.scale-125.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/Square150x150Logo.scale-150.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/Square150x150Logo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/Square150x150Logo.scale-400.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/Square44x44Logo.scale-100.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified DistroLauncher-Appx/Assets/Square44x44Logo.scale-125.png
Binary file modified DistroLauncher-Appx/Assets/Square44x44Logo.scale-150.png
Binary file modified DistroLauncher-Appx/Assets/Square44x44Logo.scale-200.png
Binary file modified DistroLauncher-Appx/Assets/Square44x44Logo.scale-400.png
Binary file modified DistroLauncher-Appx/Assets/Square44x44Logo.targetsize-16.png
Binary file modified DistroLauncher-Appx/Assets/Square44x44Logo.targetsize-24.png
Binary file modified DistroLauncher-Appx/Assets/Square44x44Logo.targetsize-256.png
Binary file modified DistroLauncher-Appx/Assets/Square44x44Logo.targetsize-32.png
Binary file modified DistroLauncher-Appx/Assets/Square44x44Logo.targetsize-48.png
Binary file modified DistroLauncher-Appx/Assets/StoreLogo.scale-100.png
Binary file modified DistroLauncher-Appx/Assets/StoreLogo.scale-125.png
Binary file modified DistroLauncher-Appx/Assets/StoreLogo.scale-150.png
Binary file modified DistroLauncher-Appx/Assets/StoreLogo.scale-200.png
Binary file modified DistroLauncher-Appx/Assets/StoreLogo.scale-400.png
Binary file modified DistroLauncher-Appx/Assets/Wide310x150Logo.scale-100.png
Binary file modified DistroLauncher-Appx/Assets/Wide310x150Logo.scale-125.png
Binary file modified DistroLauncher-Appx/Assets/Wide310x150Logo.scale-150.png
Binary file modified DistroLauncher-Appx/Assets/Wide310x150Logo.scale-200.png
Binary file modified DistroLauncher-Appx/Assets/Wide310x150Logo.scale-400.png
10 changes: 5 additions & 5 deletions DistroLauncher-Appx/DistroLauncher-Appx.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<MinimumVisualStudioVersion>14.0</MinimumVisualStudioVersion>
<AppContainerApplication>true</AppContainerApplication>
<ApplicationType>Windows Store</ApplicationType>
<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
<WindowsTargetPlatformMinVersion>10.0.16215.0</WindowsTargetPlatformMinVersion>
<ApplicationTypeRevision>10.0</ApplicationTypeRevision>
<TargetName>mydistro</TargetName>
<ProjectName>DistroLauncher-Appx</ProjectName>
<TargetName>debian</TargetName>
<ProjectName>Debian-wsl</ProjectName>
<AppxAutoIncrementPackageRevision>True</AppxAutoIncrementPackageRevision>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
Expand Down Expand Up @@ -165,8 +165,8 @@
<CustomBuild Include="$(targetname)">
<FileType>Document</FileType>
<ExcludedFromBuild>false</ExcludedFromBuild>
<Message>Copy $(SolutionDir)\$(platform)\$(Configuration)\launcher.exe into $(SolutionDir)\$(platform)\$(Configuration)\$(ProjectName)\$(targetname).exe</Message>
<Command>copy $(SolutionDir)\$(platform)\$(Configuration)\launcher.exe $(SolutionDir)\$(platform)\$(Configuration)\$(ProjectName)\$(targetname).exe</Command>
<Message>Copy $(SolutionDir)\$(platform)\$(Configuration)\launcher.exe into $(SolutionDir)\$(platform)\$(Configuration)\$(MSBuildProjectName)\$(targetname).exe</Message>
<Command>copy $(SolutionDir)\$(platform)\$(Configuration)\launcher.exe $(SolutionDir)\$(platform)\$(Configuration)\$(MSBuildProjectName)\$(targetname).exe</Command>
<Outputs>$(targetname).exe</Outputs>
</CustomBuild>
</ItemGroup>
Expand Down
16 changes: 8 additions & 8 deletions DistroLauncher-Appx/MyDistro.appxmanifest
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:uap2="http://schemas.microsoft.com/appx/manifest/uap/windows10/2" xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3" xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" IgnorableNamespaces="uap mp uap2 uap3 rescap desktop">
<Identity Name="WSL-DistroLauncher" Version="1.0.0.0" Publisher="CN=Windows Console Dev Team" ProcessorArchitecture="x64" />
<mp:PhoneIdentity PhoneProductId="160867c6-4e75-4e36-85c6-1543de07d5f3" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
<Identity Name="TheDebianProject.DebianGNULinux" Version="1.2.0.0" Publisher="CN=51C4C664-ED6E-40E8-A008-10EFD2F72288" ProcessorArchitecture="x64" />
<mp:PhoneIdentity PhoneProductId="81d6edb4-11a3-41b1-b79b-652fe8686f84" PhonePublisherId="00000000-0000-0000-0000-000000000000" />
<Properties>
<DisplayName>WSL-DistroLauncher</DisplayName>
<PublisherDisplayName>Windows Console Dev Team</PublisherDisplayName>
<DisplayName>Debian</DisplayName>
<PublisherDisplayName>The Debian Project</PublisherDisplayName>
<Logo>Assets\StoreLogo.png</Logo>
</Properties>
<Dependencies>
Expand All @@ -17,16 +17,16 @@
<Resource Language="x-generate" />
</Resources>
<Applications>
<Application Id="mydistro" Executable="mydistro.exe" EntryPoint="Windows.FullTrustApplication">
<uap:VisualElements DisplayName="WSL-DistroLauncher" Description="My Own Distro Launcher" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" BackgroundColor="transparent">
<Application Id="debian" Executable="debian.exe" EntryPoint="Windows.FullTrustApplication">
<uap:VisualElements DisplayName="Debian" Description="Debian Distro Launcher" Square150x150Logo="Assets\Square150x150Logo.png" Square44x44Logo="Assets\Square44x44Logo.png" BackgroundColor="transparent">
<uap:DefaultTile Wide310x150Logo="Assets\Wide310x150Logo.png" Square310x310Logo="Assets\LargeTile.png" Square71x71Logo="Assets\SmallTile.png">
</uap:DefaultTile>
<uap:SplashScreen Image="Assets\SplashScreen.png" />
</uap:VisualElements>
<Extensions>
<uap3:Extension Category="windows.appExecutionAlias" Executable="mydistro.exe" EntryPoint="Windows.FullTrustApplication">
<uap3:Extension Category="windows.appExecutionAlias" Executable="debian.exe" EntryPoint="Windows.FullTrustApplication">
<uap3:AppExecutionAlias>
<desktop:ExecutionAlias Alias="mydistro.exe" />
<desktop:ExecutionAlias Alias="debian.exe" />
</uap3:AppExecutionAlias>
</uap3:Extension>
</Extensions>
Expand Down
12 changes: 12 additions & 0 deletions DistroLauncher/DistributionInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,18 @@
//

#include "stdafx.h"
#include "resource.h"

static std::wstring_view LoadStringFromResource(UINT resId, std::wstring_view default)
{
wchar_t* res;
int len = LoadStringW(GetModuleHandle(nullptr), resId, reinterpret_cast<LPWSTR>(&res), 0);
return len ? std::wstring_view(res, len) : default;
}

const std::wstring DistributionInfo::Name(LoadStringFromResource(IDS_DISTRO_NAME, L"Debian"));
const std::wstring DistributionInfo::WindowTitle(LoadStringFromResource(IDS_WINDOW_CAPTION, L"Debian"));


bool DistributionInfo::CreateUser(std::wstring_view userName)
{
Expand Down
4 changes: 2 additions & 2 deletions DistroLauncher/DistributionInfo.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ namespace DistributionInfo
//
// WARNING: This value must not change between versions of your app,
// otherwise users upgrading from older versions will see launch failures.
const std::wstring Name = L"MyDistribution";
extern const std::wstring Name;

// The title bar for the console window while the distribution is installing.
const std::wstring WindowTitle = L"My Distribution";
extern const std::wstring WindowTitle;

// Create and configure a user account.
bool CreateUser(std::wstring_view userName);
Expand Down
11 changes: 11 additions & 0 deletions DistroLauncher/DistroLauncher.rc
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,17 @@ END
// remains consistent on all systems.
IDI_ICON1 ICON ".\images\icon.ico"

/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE
BEGIN
IDS_DISTRO_NAME "DebianJessie"
IDS_WINDOW_CAPTION "Debian 8.0"
END

#endif // English (United States) resources
/////////////////////////////////////////////////////////////////////////////

Expand Down
Binary file modified DistroLauncher/images/icon.ico
Binary file not shown.
Binary file modified DistroLauncher/images/icon.png
2 changes: 2 additions & 0 deletions DistroLauncher/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
// Used by DistroInstaller.rc
//
#define IDI_ICON1 101
#define IDS_DISTRO_NAME 150
#define IDS_WINDOW_CAPTION 151

// Next default values for new objects
//
Expand Down