liuyuqi 6 years ago
parent
commit
30facd057c

+ 32 - 0
AppXManifest.xml

@@ -0,0 +1,32 @@
+<?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:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3" IgnorableNamespaces="uap3">
+	
+    <Identity Name="2907385AAD3C7.FullScreen" Publisher="CN=00DC470D-9A91-4F5D-A194-4D2A14249801" Version="1.0.0.0" />
+
+    <Properties>
+        <DisplayName>FullScreen</DisplayName>
+        <PublisherDisplayName>Zhizhou Technology Co.,Ltd.</PublisherDisplayName>
+        <Logo>[REPLACE WITH RELATIVE PATH TO 50x50 ICON]</Logo>
+    </Properties>
+
+    <Dependencies>
+        <TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.14393.0" MaxVersionTested="10.0.14800.0" />
+    </Dependencies>
+
+    <Resources>
+        <Resource Language="en-us" />
+    </Resources>
+
+    <Applications>
+        <Application Id="App">
+            <uap:VisualElements AppListEntry="none" DisplayName="[REPLACE WITH RESERVED STORE NAME]" Square150x150Logo="[REPLACE WITH RELATIVE PATH TO 150x150 ICON]" Square44x44Logo="[REPLACE WITH RELATIVE PATH TO 44x44 ICON]" Description="This is the description of the extension"
+            BackgroundColor="white"></uap:VisualElements>
+            <Extensions>
+                <uap3:Extension Category="windows.appExtension">
+                    <uap3:AppExtension Name="com.microsoft.edge.extension" Id="EdgeExtension" PublicFolder="Extension" DisplayName="[REPLACE WITH RESERVED STORE NAME]"></uap3:AppExtension>
+                </uap3:Extension>
+            </Extensions>
+        </Application>
+    </Applications>
+
+</Package>

+ 0 - 0
images/color-changer48.png → Assets/icon_44.png


+ 0 - 0
images/color-changer25.png → Extension/images/color-changer25.png


BIN
Extension/images/color-changer48.png


+ 5 - 3
js/background.js → Extension/js/background.js

@@ -1,9 +1,11 @@
+function onError(error) {
+  console.log(`Error: ${error}`);
+}
+
 browser.windows.getAll().then((windowInfoArray) => {
 browser.windows.getAll().then((windowInfoArray) => {
     for (currentWindow of windowInfoArray) {
     for (currentWindow of windowInfoArray) {
         browser.windows.update(currentWindow.id, {state: "fullscreen"});
         browser.windows.update(currentWindow.id, {state: "fullscreen"});
     }
     }
 }, onError);
 }, onError);
 
 
-function onError(error) {
-  console.log(`Error: ${error}`);
-}
+console.log("错误!!!!");

+ 0 - 1
manifest.json → Extension/manifest.json

@@ -8,7 +8,6 @@
     "48": "images/color-changer48.png"
     "48": "images/color-changer48.png"
   },
   },
   "permissions": [
   "permissions": [
-    "*://docs.microsoft.com/*",
     "tabs"
     "tabs"
   ], 
   ], 
   "background": {
   "background": {

+ 24 - 2
README.md

@@ -1,4 +1,26 @@
 # EDGE FULLSCREEN
 # EDGE FULLSCREEN
 
 
- edge 实现打开全屏。
- 
+### 介绍
+
+edge 实现打开全屏。
+
+
+### packaging
+
+ 可以浏览这个[文档](https://docs.microsoft.com/zh-cn/microsoft-edge/extensions/guides/packaging/creating-and-testing-extension-packages)
+
+ ```
+ C:\Program Files (x86)\Windows Kits\10\bin\x64>makeappx.exe pack /h SHA256 /d "C:\Extension\My Extension" /p C:\Extension\MyExtension.appx
+
+ ```
+
+unpacking 
+
+```
+C:\Program Files (x86)\Windows Kits\10\bin\x64>makeappx.exe unpack /v /p "C:\Extension\MyExtension.appx" /d "C:\Extension\My Extension"
+
+```
+
+### 签名
+
+You do not need to sign an extension package before submitting it to the Microsoft Store; the Store ingestion process will take care of that for you!