Skip to content

Commit

Permalink
Uploaded TU2 project files
Browse files Browse the repository at this point in the history
  • Loading branch information
jstmaxlol authored Aug 15, 2024
1 parent 6a6da1c commit 7ff93b0
Show file tree
Hide file tree
Showing 34 changed files with 659 additions and 52 deletions.
4 changes: 2 additions & 2 deletions MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
mc:Ignorable="d"
Title="SSIRewritten - Release I3" Height="530" Width="555">
Title="SSIRewritten TU2" Height="530" Width="555">
<Grid>
<wv2:WebView2 Name="webView" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
</Grid>
</Window>
</Window>
16 changes: 2 additions & 14 deletions MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,11 @@ private void WebView_WebMessageReceived(object sender, CoreWebView2WebMessageRec
if (json.action == "install")
{
bool installSpicetify = json.installSpicetify;
bool installMarketplace = json.installMarketplace;

if (installSpicetify && installMarketplace)
if (installSpicetify)
{
MessageBox.Show("installing Spicetify and Marketplace.. -~-*(# 3#)/*-~-");
MessageBox.Show("the script will ask you to install the marketplace!.. -~-*(# 3#)/*-~-");
Process.Start(new ProcessStartInfo("powershell", "-Command \"iwr -useb https://raw.githubusercontent.com/spicetify/cli/main/install.ps1 | iex\"")).StandardOutput.ReadToEnd();
Process.Start(new ProcessStartInfo("powershell", "-Command \"iwr -useb https://raw.githubusercontent.com/spicetify/marketplace/main/resources/install.ps1 | iex\"")).StandardOutput.ReadToEnd();
}
else if (installSpicetify)
{
MessageBox.Show("installing Spicetify.. -~-*(SwS)/*-~-");
Process.Start(new ProcessStartInfo("powershell", "-Command \"iwr -useb https://raw.githubusercontent.com/spicetify/cli/main/install.ps1 | iex\"")).StandardOutput.ReadToEnd();
}
else if (installMarketplace)
{
MessageBox.Show("installing Marketplace.. -~-*(MwM)/*-~-");
Process.Start(new ProcessStartInfo("powershell", "-Command \"iwr -useb https://raw.githubusercontent.com/spicetify/marketplace/main/resources/install.ps1 | iex\"")).StandardOutput.ReadToEnd();
}
else
{
Expand Down
7 changes: 5 additions & 2 deletions SSIRewritten.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,26 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF>
<ApplicationIcon>SSiR-TU2.ico</ApplicationIcon>
</PropertyGroup>

<ItemGroup>
<None Remove="web\index.html" />
<None Remove="web\styles.css" />
<None Remove="web\Ubuntu.zip" />
</ItemGroup>

<ItemGroup>
<COMReference Include="{bee4bfec-6683-3e67-9167-3c0cbc68f40a}">
<WrapperTool>tlbimp</WrapperTool>
<VersionMinor>4</VersionMinor>
<VersionMajor>2</VersionMajor>
<VersionMinor>6</VersionMinor>
<VersionMajor>9</VersionMajor>
<Guid>bee4bfec-6683-3e67-9167-3c0cbc68f40a</Guid>
</COMReference>
</ItemGroup>

<ItemGroup>
<Content Include="SSiR-TU2.ico" />
<Content Include="web\index.html">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
Expand Down
Binary file added SSiR-TU2.ico
Binary file not shown.
30 changes: 30 additions & 0 deletions obj/Debug/SSIRewritten.1.0.0.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd">
<metadata>
<id>SSIRewritten</id>
<version>1.0.0</version>
<authors>SSIRewritten</authors>
<description>Package Description</description>
<repository type="git" />
<dependencies>
<group targetFramework="net8.0-windows7.0">
<dependency id="Microsoft.Web.WebView2" version="1.0.2592.51" exclude="Build,Analyzers" />
<dependency id="Newtonsoft.Json" version="13.0.3" exclude="Build,Analyzers" />
</group>
</dependencies>
<frameworkReferences>
<group targetFramework="net8.0-windows7.0">
<frameworkReference name="Microsoft.WindowsDesktop.App.WPF" />
</group>
</frameworkReferences>
<contentFiles>
<files include="any/net8.0-windows7.0/web/index.html" buildAction="Content" />
</contentFiles>
</metadata>
<files>
<file src="F:\vscode REPOS\a SSIRewritten WPF\SSIRewritten\bin\Debug\net8.0-windows\SSIRewritten.runtimeconfig.json" target="lib\net8.0-windows7.0\SSIRewritten.runtimeconfig.json" />
<file src="F:\vscode REPOS\a SSIRewritten WPF\SSIRewritten\bin\Debug\net8.0-windows\SSIRewritten.dll" target="lib\net8.0-windows7.0\SSIRewritten.dll" />
<file src="F:\vscode REPOS\a SSIRewritten WPF\SSIRewritten\web\index.html" target="content\web\index.html" />
<file src="F:\vscode REPOS\a SSIRewritten WPF\SSIRewritten\web\index.html" target="contentFiles\any\net8.0-windows7.0\web\index.html" />
</files>
</package>
71 changes: 71 additions & 0 deletions obj/Release/net8.0-windows/App.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "75B047135984AA7BC9EA842CC5000314A0B186E6"
//------------------------------------------------------------------------------
// <auto-generated>
// Il codice è stato generato da uno strumento.
// Versione runtime:4.0.30319.42000
//
// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se
// il codice viene rigenerato.
// </auto-generated>
//------------------------------------------------------------------------------

using SSIRewritten;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Controls.Ribbon;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;


namespace SSIRewritten {


/// <summary>
/// App
/// </summary>
public partial class App : System.Windows.Application {

/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.7.0")]
public void InitializeComponent() {

#line 5 "..\..\..\App.xaml"
this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);

#line default
#line hidden
}

/// <summary>
/// Application Entry Point.
/// </summary>
[System.STAThreadAttribute()]
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.7.0")]
public static void Main() {
SSIRewritten.App app = new SSIRewritten.App();
app.InitializeComponent();
app.Run();
}
}
}

71 changes: 71 additions & 0 deletions obj/Release/net8.0-windows/App.g.i.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "75B047135984AA7BC9EA842CC5000314A0B186E6"
//------------------------------------------------------------------------------
// <auto-generated>
// Il codice è stato generato da uno strumento.
// Versione runtime:4.0.30319.42000
//
// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se
// il codice viene rigenerato.
// </auto-generated>
//------------------------------------------------------------------------------

using SSIRewritten;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Controls.Ribbon;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;


namespace SSIRewritten {


/// <summary>
/// App
/// </summary>
public partial class App : System.Windows.Application {

/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.7.0")]
public void InitializeComponent() {

#line 5 "..\..\..\App.xaml"
this.StartupUri = new System.Uri("MainWindow.xaml", System.UriKind.Relative);

#line default
#line hidden
}

/// <summary>
/// Application Entry Point.
/// </summary>
[System.STAThreadAttribute()]
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.7.0")]
public static void Main() {
SSIRewritten.App app = new SSIRewritten.App();
app.InitializeComponent();
app.Run();
}
}
}

Binary file added obj/Release/net8.0-windows/MainWindow.baml
Binary file not shown.
90 changes: 90 additions & 0 deletions obj/Release/net8.0-windows/MainWindow.g.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
#pragma checksum "..\..\..\MainWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "166FF23A50D76476B133ED48C13A5F0E8C9855D3"
//------------------------------------------------------------------------------
// <auto-generated>
// Il codice è stato generato da uno strumento.
// Versione runtime:4.0.30319.42000
//
// Le modifiche apportate a questo file possono provocare un comportamento non corretto e andranno perse se
// il codice viene rigenerato.
// </auto-generated>
//------------------------------------------------------------------------------

using Microsoft.Web.WebView2.Wpf;
using System;
using System.Diagnostics;
using System.Windows;
using System.Windows.Automation;
using System.Windows.Controls;
using System.Windows.Controls.Primitives;
using System.Windows.Controls.Ribbon;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Media.Effects;
using System.Windows.Media.Imaging;
using System.Windows.Media.Media3D;
using System.Windows.Media.TextFormatting;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Shell;


namespace SSIRewritten {


/// <summary>
/// MainWindow
/// </summary>
public partial class MainWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {


#line 10 "..\..\..\MainWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal Microsoft.Web.WebView2.Wpf.WebView2 webView;

#line default
#line hidden

private bool _contentLoaded;

/// <summary>
/// InitializeComponent
/// </summary>
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.7.0")]
public void InitializeComponent() {
if (_contentLoaded) {
return;
}
_contentLoaded = true;
System.Uri resourceLocater = new System.Uri("/SSIRewritten;component/mainwindow.xaml", System.UriKind.Relative);

#line 1 "..\..\..\MainWindow.xaml"
System.Windows.Application.LoadComponent(this, resourceLocater);

#line default
#line hidden
}

[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.7.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")]
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")]
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) {
switch (connectionId)
{
case 1:
this.webView = ((Microsoft.Web.WebView2.Wpf.WebView2)(target));
return;
}
this._contentLoaded = true;
}
}
}

Loading

0 comments on commit 7ff93b0

Please sign in to comment.