Browse Source

add PackagingProj

liuyuqi-dellpc 1 year ago
parent
commit
614008c22c

BIN
PackagingProj/Images/LockScreenLogo.scale-200.png


BIN
PackagingProj/Images/SplashScreen.scale-200.png


BIN
PackagingProj/Images/Square150x150Logo.scale-200.png


BIN
PackagingProj/Images/Square44x44Logo.scale-200.png


BIN
PackagingProj/Images/Square44x44Logo.targetsize-24_altform-unplated.png


BIN
PackagingProj/Images/StoreLogo.png


BIN
PackagingProj/Images/Wide310x150Logo.scale-200.png


+ 49 - 0
PackagingProj/Package.appxmanifest

@@ -0,0 +1,49 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<Package
+  xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
+  xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
+  xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
+  IgnorableNamespaces="uap rescap">
+
+  <Identity
+    Name="80ecc74d-ad36-4d8a-994e-a655d0c52b5c"
+    Publisher="CN=liuyuqi"
+    Version="1.1.0.0" />
+
+  <Properties>
+    <DisplayName>PackagingProj</DisplayName>
+    <PublisherDisplayName>liuyuqi</PublisherDisplayName>
+    <Logo>Images\StoreLogo.png</Logo>
+  </Properties>
+
+  <Dependencies>
+    <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
+    <TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.14393.0" MaxVersionTested="10.0.14393.0" />
+  </Dependencies>
+
+  <Resources>
+    <Resource Language="x-generate"/>
+  </Resources>
+
+  <Applications>
+    <Application Id="App"
+      Executable="$targetnametoken$.exe"
+      EntryPoint="$targetentrypoint$">
+      <uap:VisualElements
+        DisplayName="PackagingProj"
+        Description="PackagingProj"
+        BackgroundColor="transparent"
+        Square150x150Logo="Images\Square150x150Logo.png"
+        Square44x44Logo="Images\Square44x44Logo.png">
+        <uap:DefaultTile Wide310x150Logo="Images\Wide310x150Logo.png" />
+        <uap:SplashScreen Image="Images\SplashScreen.png" />
+      </uap:VisualElements>
+    </Application>
+  </Applications>
+
+  <Capabilities>
+    <Capability Name="internetClient" />
+    <rescap:Capability Name="runFullTrust" />
+  </Capabilities>
+</Package>

+ 89 - 0
PackagingProj/PackagingProj.wapproj

@@ -0,0 +1,89 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+
+  <PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '15.0'">
+    <VisualStudioVersion>15.0</VisualStudioVersion>
+  </PropertyGroup>
+
+  <ItemGroup Label="ProjectConfigurations">
+    <ProjectConfiguration Include="Debug|x86">
+      <Configuration>Debug</Configuration>
+      <Platform>x86</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|x86">
+      <Configuration>Release</Configuration>
+      <Platform>x86</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Debug|x64">
+      <Configuration>Debug</Configuration>
+      <Platform>x64</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|x64">
+      <Configuration>Release</Configuration>
+      <Platform>x64</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Debug|ARM">
+      <Configuration>Debug</Configuration>
+      <Platform>ARM</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|ARM">
+      <Configuration>Release</Configuration>
+      <Platform>ARM</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Debug|ARM64">
+      <Configuration>Debug</Configuration>
+      <Platform>ARM64</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|ARM64">
+      <Configuration>Release</Configuration>
+      <Platform>ARM64</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Debug|AnyCPU">
+      <Configuration>Debug</Configuration>
+      <Platform>AnyCPU</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|AnyCPU">
+      <Configuration>Release</Configuration>
+      <Platform>AnyCPU</Platform>
+    </ProjectConfiguration>
+  </ItemGroup>
+
+  <PropertyGroup>
+    <WapProjPath Condition="'$(WapProjPath)'==''">$(MSBuildExtensionsPath)\Microsoft\DesktopBridge\</WapProjPath>
+  </PropertyGroup>
+
+  <Import Project="$(WapProjPath)\Microsoft.DesktopBridge.props" />
+
+  <PropertyGroup>
+    <ProjectGuid>5085de4d-b9bc-450a-80bd-5b865f003cb9</ProjectGuid>
+    <TargetPlatformVersion>10.0.19041.0</TargetPlatformVersion>
+    <TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
+    <DefaultLanguage>en-US</DefaultLanguage>
+    
+    <AppxPackageSigningEnabled>false</AppxPackageSigningEnabled>
+  </PropertyGroup>
+
+  <ItemGroup>
+    <AppxManifest Include="Package.appxmanifest">
+      <SubType>Designer</SubType>
+    </AppxManifest>
+    
+  </ItemGroup>
+
+  <ItemGroup>
+    <Content Include="Images\SplashScreen.scale-200.png" />
+    <Content Include="Images\LockScreenLogo.scale-200.png" />
+    <Content Include="Images\Square150x150Logo.scale-200.png" />
+    <Content Include="Images\Square44x44Logo.scale-200.png" />
+    <Content Include="Images\Square44x44Logo.targetsize-24_altform-unplated.png" />
+    <Content Include="Images\StoreLogo.png" />
+    <Content Include="Images\Wide310x150Logo.scale-200.png" />
+  </ItemGroup>
+
+  <Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" />
+
+  <ItemGroup>
+    <PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.19041.8" PrivateAssets="all" />
+  </ItemGroup>
+
+</Project>

+ 56 - 0
SheepSheep.sln

@@ -5,16 +5,72 @@ VisualStudioVersion = 16.0.32602.291
 MinimumVisualStudioVersion = 10.0.40219.1
 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SheepSheep", "SheepSheep\SheepSheep.csproj", "{E61CF656-8A7B-4C92-8D17-B86B514BF295}"
 EndProject
+Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "PackagingProj", "PackagingProj\PackagingProj.wapproj", "{5085DE4D-B9BC-450A-80BD-5B865F003CB9}"
+EndProject
 Global
 	GlobalSection(SolutionConfigurationPlatforms) = preSolution
 		Debug|Any CPU = Debug|Any CPU
+		Debug|ARM = Debug|ARM
+		Debug|ARM64 = Debug|ARM64
+		Debug|x64 = Debug|x64
+		Debug|x86 = Debug|x86
 		Release|Any CPU = Release|Any CPU
+		Release|ARM = Release|ARM
+		Release|ARM64 = Release|ARM64
+		Release|x64 = Release|x64
+		Release|x86 = Release|x86
 	EndGlobalSection
 	GlobalSection(ProjectConfigurationPlatforms) = postSolution
 		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
 		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Debug|ARM.ActiveCfg = Debug|Any CPU
+		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Debug|ARM.Build.0 = Debug|Any CPU
+		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Debug|ARM64.ActiveCfg = Debug|Any CPU
+		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Debug|ARM64.Build.0 = Debug|Any CPU
+		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Debug|x64.ActiveCfg = Debug|Any CPU
+		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Debug|x64.Build.0 = Debug|Any CPU
+		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Debug|x86.ActiveCfg = Debug|Any CPU
+		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Debug|x86.Build.0 = Debug|Any CPU
 		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Release|Any CPU.ActiveCfg = Release|Any CPU
 		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Release|Any CPU.Build.0 = Release|Any CPU
+		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Release|ARM.ActiveCfg = Release|Any CPU
+		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Release|ARM.Build.0 = Release|Any CPU
+		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Release|ARM64.ActiveCfg = Release|Any CPU
+		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Release|ARM64.Build.0 = Release|Any CPU
+		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Release|x64.ActiveCfg = Release|Any CPU
+		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Release|x64.Build.0 = Release|Any CPU
+		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Release|x86.ActiveCfg = Release|Any CPU
+		{E61CF656-8A7B-4C92-8D17-B86B514BF295}.Release|x86.Build.0 = Release|Any CPU
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Debug|Any CPU.Build.0 = Debug|Any CPU
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Debug|ARM.ActiveCfg = Debug|ARM
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Debug|ARM.Build.0 = Debug|ARM
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Debug|ARM.Deploy.0 = Debug|ARM
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Debug|ARM64.ActiveCfg = Debug|ARM64
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Debug|ARM64.Build.0 = Debug|ARM64
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Debug|ARM64.Deploy.0 = Debug|ARM64
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Debug|x64.ActiveCfg = Debug|x64
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Debug|x64.Build.0 = Debug|x64
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Debug|x64.Deploy.0 = Debug|x64
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Debug|x86.ActiveCfg = Debug|x86
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Debug|x86.Build.0 = Debug|x86
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Debug|x86.Deploy.0 = Debug|x86
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Release|Any CPU.ActiveCfg = Release|Any CPU
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Release|Any CPU.Build.0 = Release|Any CPU
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Release|Any CPU.Deploy.0 = Release|Any CPU
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Release|ARM.ActiveCfg = Release|ARM
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Release|ARM.Build.0 = Release|ARM
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Release|ARM.Deploy.0 = Release|ARM
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Release|ARM64.ActiveCfg = Release|ARM64
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Release|ARM64.Build.0 = Release|ARM64
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Release|ARM64.Deploy.0 = Release|ARM64
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Release|x64.ActiveCfg = Release|x64
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Release|x64.Build.0 = Release|x64
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Release|x64.Deploy.0 = Release|x64
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Release|x86.ActiveCfg = Release|x86
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Release|x86.Build.0 = Release|x86
+		{5085DE4D-B9BC-450A-80BD-5B865F003CB9}.Release|x86.Deploy.0 = Release|x86
 	EndGlobalSection
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE

+ 14 - 0
SheepSheep/Dao/Api.cs

@@ -0,0 +1,14 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace SheepSheep.Dao
+{
+    class Api
+    {
+        static String host = "https://cat-match.easygame2021.com";
+        public static String passGame = host + "/sheep/v1/game/game_over?rank_score=1&rank_state=1&rank_time={0}&rank_role=1&skin=1";
+    }
+}

+ 1 - 1
SheepSheep/Form1.Designer.cs → SheepSheep/MainForm.Designer.cs

@@ -1,7 +1,7 @@
 
 namespace SheepSheep
 {
-    partial class Form1
+    partial class MainForm
     {
         /// <summary>
         /// 必需的设计器变量。

+ 2 - 2
SheepSheep/Form1.cs → SheepSheep/MainForm.cs

@@ -14,12 +14,12 @@ using System.Windows.Forms;
 
 namespace SheepSheep
 {
-    public partial class Form1 : Form
+    public partial class MainForm : Form
     {
         private int passWay = 0;
         private int state = 0;
         private string costTime = "10";
-        public Form1()
+        public MainForm()
         {
             InitializeComponent();
             init();

+ 0 - 0
SheepSheep/Form1.resx → SheepSheep/MainForm.resx


+ 0 - 0
SheepSheep/FrmInputDialog.Designer.cs → SheepSheep/Pages/FrmInputDialog.Designer.cs


+ 0 - 0
SheepSheep/FrmInputDialog.cs → SheepSheep/Pages/FrmInputDialog.cs


+ 0 - 0
SheepSheep/FrmInputDialog.resx → SheepSheep/Pages/FrmInputDialog.resx


+ 1 - 1
SheepSheep/Program.cs

@@ -17,7 +17,7 @@ namespace SheepSheep
         {
             Application.EnableVisualStyles();
             Application.SetCompatibleTextRenderingDefault(false);
-            Application.Run(new Form1());
+            Application.Run(new MainForm());
         }
     }
 }

+ 14 - 8
SheepSheep/SheepSheep.csproj

@@ -48,26 +48,27 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
-    <Compile Include="Form1.cs">
+    <Compile Include="Dao\Api.cs" />
+    <Compile Include="MainForm.cs">
       <SubType>Form</SubType>
     </Compile>
-    <Compile Include="Form1.Designer.cs">
-      <DependentUpon>Form1.cs</DependentUpon>
+    <Compile Include="MainForm.Designer.cs">
+      <DependentUpon>MainForm.cs</DependentUpon>
     </Compile>
-    <Compile Include="FrmInputDialog.cs">
+    <Compile Include="Pages\FrmInputDialog.cs">
       <SubType>Form</SubType>
     </Compile>
-    <Compile Include="FrmInputDialog.Designer.cs">
+    <Compile Include="Pages\FrmInputDialog.Designer.cs">
       <DependentUpon>FrmInputDialog.cs</DependentUpon>
     </Compile>
     <Compile Include="InputDialog.cs" />
     <Compile Include="Program.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
     <Compile Include="WcToken.cs" />
-    <EmbeddedResource Include="Form1.resx">
-      <DependentUpon>Form1.cs</DependentUpon>
+    <EmbeddedResource Include="MainForm.resx">
+      <DependentUpon>MainForm.cs</DependentUpon>
     </EmbeddedResource>
-    <EmbeddedResource Include="FrmInputDialog.resx">
+    <EmbeddedResource Include="Pages\FrmInputDialog.resx">
       <DependentUpon>FrmInputDialog.cs</DependentUpon>
     </EmbeddedResource>
     <None Include="Properties\Settings.settings">
@@ -83,5 +84,10 @@
   <ItemGroup>
     <None Include="App.config" />
   </ItemGroup>
+  <ItemGroup>
+    <Folder Include="Models\" />
+    <Folder Include="Utils\" />
+    <Folder Include="Views\" />
+  </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 </Project>

+ 1 - 0
SheepSheep/WcToken.cs

@@ -18,6 +18,7 @@ namespace SheepSheep
         private static extern int VirtualQueryEx(IntPtr hProcess, IntPtr lpAddress, out MEMORY_BASIC_INFORMATION lpBuffer, int dwLength);
         [DllImport("Kernel32.dll")]
         public static extern bool ReadProcessMemory(IntPtr handle, int address, byte[] data, int size, byte[] read);
+
         private struct MEMORY_BASIC_INFORMATION
         {
             public int BaseAddress;