Unverified Commit e1022d1d authored by tunip3's avatar tunip3 Committed by GitHub
Browse files

Added option to disable semantic validation made by make appx

The validation ensures that:

All files referenced in the package manifest are included in the app package.
An application does not have two identical keys.
An application does not register for a forbidden protocol from this list: SMB , FILE, MS-WWA-WEB, MS-WWA.
parent 2fd46994
Loading
Loading
Loading
Loading
+14 −1
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@
            this.status = new System.Windows.Forms.Label();
            this.id = new System.Windows.Forms.Button();
            this.od = new System.Windows.Forms.Button();
            this.semantic = new System.Windows.Forms.CheckBox();
            this.SuspendLayout();
            // 
            // label1
@@ -76,7 +77,7 @@
            // 
            // start
            // 
            this.start.Location = new System.Drawing.Point(12, 90);
            this.start.Location = new System.Drawing.Point(12, 113);
            this.start.Name = "start";
            this.start.Size = new System.Drawing.Size(356, 26);
            this.start.TabIndex = 4;
@@ -113,11 +114,22 @@
            this.od.UseVisualStyleBackColor = true;
            this.od.Click += new System.EventHandler(this.od_Click);
            // 
            // semantic
            // 
            this.semantic.AutoSize = true;
            this.semantic.Location = new System.Drawing.Point(12, 90);
            this.semantic.Name = "semantic";
            this.semantic.Size = new System.Drawing.Size(154, 17);
            this.semantic.TabIndex = 8;
            this.semantic.Text = "Disable semantic validation";
            this.semantic.UseVisualStyleBackColor = true;
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(412, 203);
            this.Controls.Add(this.semantic);
            this.Controls.Add(this.od);
            this.Controls.Add(this.id);
            this.Controls.Add(this.status);
@@ -144,6 +156,7 @@
        private System.Windows.Forms.Label status;
        private System.Windows.Forms.Button id;
        private System.Windows.Forms.Button od;
        private System.Windows.Forms.CheckBox semantic;
    }
}
+6 −5
Original line number Diff line number Diff line
@@ -145,8 +145,10 @@ namespace WindowsFormsApp1

        private void MakeAppx()
        {
            string text = AppCurrentDirctory + "\\Appxpacker\\MakeAppx.exe";
            string text
             = AppCurrentDirctory + "\\Appxpacker\\MakeAppx.exe";
            string args = "pack - d \"" + WSAppPath + "\" -p \"" + WSAppOutputPath + "\\" + WSAppFileName + ".appx\" -l";
            if (semantic.Checked) { args = "pack -d \"" + WSAppPath + "\" -p \"" + WSAppOutputPath + "\\" + WSAppFileName + ".appx\" -l -nv";}
            if (File.Exists(text))
            {
                if (File.Exists(WSAppOutputPath + "\\" + WSAppFileName + ".appx"))
@@ -275,7 +277,6 @@ namespace WindowsFormsApp1

        private void inputdir_TextChanged(object sender, EventArgs e)
        {

        }

        private void label1_Click(object sender, EventArgs e)
@@ -316,7 +317,7 @@ namespace WindowsFormsApp1
        private void id_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog di = new FolderBrowserDialog();
            di.Description = " select download path";
            di.Description = " select app folder";
            if (di.ShowDialog() == DialogResult.OK)
                inputdir.Text = di.SelectedPath;
        }
@@ -324,7 +325,7 @@ namespace WindowsFormsApp1
        private void od_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog duo = new FolderBrowserDialog();
            duo.Description = " select download path";
            duo.Description = " select output folder";
            if (duo.ShowDialog() == DialogResult.OK)
                outputdir.Text = duo.SelectedPath;
        }