Address some of the PR concerns

Still need to add more scales, sizes of resources
This commit is contained in:
Mike Griese 2017-07-13 11:29:36 -07:00
Родитель 15fced10f0
Коммит cc9058e6e2
5 изменённых файлов: 11 добавлений и 9 удалений

2
.gitignore поставляемый
Просмотреть файл

@ -289,7 +289,7 @@ __pycache__/
DistroLauncher/MSG00409.bin
DistroLauncher/MSG*.bin
DistroLauncher/messages.rc
DistroLauncher/messages.h
*.lib

Просмотреть файл

@ -85,7 +85,7 @@
<CustomBuild Include="$(targetname)">
<FileType>Document</FileType>
<ExcludedFromBuild>false</ExcludedFromBuild>
<Message>copy the thing, $(SolutionDir)\$(platform)\$(Configuration)\launcher.exe into $(SolutionDir)\$(platform)\$(Configuration)\$(ProjectName)\$(targetname).exe</Message>
<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>
<Outputs>$(targetname).exe</Outputs>
</CustomBuild>

Просмотреть файл

@ -1,4 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<?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"
@ -9,12 +9,12 @@
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="uap mp uap2 uap3 rescap desktop">
<Identity Name="2677c750-3a81-4908-bb66-7883a0ac77e6"
<Identity Name="DistroName.1.0"
Version="1.0.0.0"
Publisher="CN=DistroOwner"
ProcessorArchitecture="x64" />
<mp:PhoneIdentity PhoneProductId="2677c750-3a81-4908-bb66-7883a0ac77e6" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
<mp:PhoneIdentity PhoneProductId="00000000-0000-0000-0000-000000000000" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>
<Properties>
<DisplayName>My Linux Distro</DisplayName>

Просмотреть файл

@ -8,7 +8,7 @@
int wmain(int argc, wchar_t const *argv[])
{
HRESULT hr = S_OK;
Sleep(1000);
MyLinuxDistroLauncher myDistro = MyLinuxDistroLauncher();
hr = myDistro.Initialize();

Просмотреть файл

@ -65,7 +65,7 @@
</PropertyGroup>
```
**DO NOT** change the ProjectName of the `DistroLauncher/DistroLauncher.vcxproj` from the value `launcher`. Doing so will break the build.
**DO NOT** change the ProjectName of the `DistroLauncher/DistroLauncher.vcxproj` from the value `launcher`. Doing so will break the build, as the DistroLauncher-Appx project is looking for the output of this project as `launcher.exe`.
7. Update `MyDistro.appxmanifest`. There are a number of properties that are in the manifest that will need to be updated with your specific values.
- Make sure to note the `Identity Publisher` value (by default, `"CN=DistroOwner"`). We'll need that for testing the application.
@ -98,7 +98,7 @@
### Building Project (Visual Studio):
You can also easily build and deploy the distro launcher from visual studio. To sideload your appx on your machine for testing, all you need to do is right-click on the "Solution (DistroLauncher)" in the Solution Explorer and click "Deploy Solution". This should build the project and sideload it automatically for testing.
You can also easily build and deploy the distro launcher from Visual Studio. To sideload your appx on your machine for testing, all you need to do is right-click on the "Solution (DistroLauncher)" in the Solution Explorer and click "Deploy Solution". This should build the project and sideload it automatically for testing.
Note that the "Big Green Button" for running your project will likely not work. If you've previously registered your distro with WSL once, you might be able to use that to rebuild and launch your exe, but in most cases it won't work.
@ -110,7 +110,7 @@
You can then begin the distro registration by launching the app from the Start Menu, or executing `mydistro` from the commandline.
### Publishing
Once you are ready to upload your appx to the store, you will need to change a few small things to prepare the appx for the store.
Once you are ready to upload your appx to the store, you will need to change a few small things to prepare the appx for the store.
1. In the appxmanifest, you will need to change the values of the Identity to match the value given to you by the store. This should look like the following:
@ -121,6 +121,8 @@
ProcessorArchitecture="x64" />
```
**NOTE**: Visual Studio can update this for you. You can do that by right-clicking on "DistroLauncher-Appx (Universal Windows)" in the solution explorer, and clicking on "Store... Associate App with the Store..." and following the wizard.
2. You will either need to run `build rel` from the commandline to generate the Release version of your appx, or use Visual Studio directly to upload your package to the store. You can do this by right-clicking on "DistroLauncher-Appx (Universal Windows)" in the solution explorer, and clicking on "Store... Create App Packages..." and following the wizard.
# Contributing