Commit 6911f3ec authored by Yuanle Song's avatar Yuanle Song
Browse files

v0.5.0.0 add mbackupw, run this in schtasks

this allow running mbackup.exe without showing the cmd.exe window.
parent df7a76d0
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6,3 +6,4 @@ bin/
*.msi
*-files.wxs
t1*
.vscode/
 No newline at end of file
+4 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@ LIGHT := "$(WIX_DIR)\light.exe" -nologo

RSYNC_MINGW_DIR := D:\downloads\apps\rsync-w64
MBACKUP_PUBLISH_DIR := bin\Release\netcoreapp3.0\publish
MBACKUPW_PUBLISH_DIR := mbackupw\bin\Release\netcoreapp3.0\publish
MSI_DIR := D:\downloads\upload
VERSION := $(shell powershell -NoProfile -File GetVersion.ps1)

@@ -17,11 +18,14 @@ all: test release dist
dist: msi
release: test
	dotnet publish --nologo -c Release --self-contained false
	dotnet publish --nologo -c Release --self-contained false mbackupw
	cmd /C 'COPY /Y $(MBACKUPW_PUBLISH_DIR)\*.* $(MBACKUP_PUBLISH_DIR)\'
test:
	dotnet test --nologo mbackup-tests
check: test
build:
	dotnet build --nologo
	dotnet build --nologo mbackupw
clean:
	dotnet clean --nologo
	cmd /C 'del *.wixobj *.wixpdb *.msi rsync-mingw64-files.wxs'
+1 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
    <RuntimeIdentifiers>win10-x64</RuntimeIdentifiers>
    <RootNamespace>Mbackup</RootNamespace>
    <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
    <Version>0.4.7.0</Version>
    <Version>0.5.0.0</Version>
  </PropertyGroup>

  <ItemGroup>
+2 −2
Original line number Diff line number Diff line
@@ -94,7 +94,7 @@
        Impersonate="no"
        Execute="deferred"
        Directory="TARGETDIR"
        ExeCommand="&quot;[SystemFolder]SCHTASKS.EXE&quot; /Create /RU BUILTIN\USERS /RP /NP /SC ONLOGON /TN &quot;mbackup-logon&quot; /TR &quot;[MBACKUP_PROGRAM_FILES]publish\mbackup.exe&quot; /DELAY 0015:00" />
        ExeCommand="&quot;[SystemFolder]SCHTASKS.EXE&quot; /Create /RU BUILTIN\USERS /RP /NP /SC ONLOGON /TN &quot;mbackup-logon&quot; /TR &quot;[MBACKUP_PROGRAM_FILES]publish\mbackupw.exe&quot; /DELAY 0015:00" />
    <CustomAction Id="RemoveScheduledTaskLogon"
        Return="check"
        Impersonate="no"
@@ -106,7 +106,7 @@
        Impersonate="no"
        Execute="deferred"
        Directory="TARGETDIR"
        ExeCommand="&quot;[SystemFolder]SCHTASKS.EXE&quot; /Create /RU BUILTIN\USERS /RP /NP /SC DAILY /TN &quot;mbackup-interval&quot; /TR &quot;[MBACKUP_PROGRAM_FILES]publish\mbackup.exe&quot; /ST 09:00 /DU 17:00 /RI 120 /K" />
        ExeCommand="&quot;[SystemFolder]SCHTASKS.EXE&quot; /Create /RU BUILTIN\USERS /RP /NP /SC DAILY /TN &quot;mbackup-interval&quot; /TR &quot;[MBACKUP_PROGRAM_FILES]publish\mbackupw.exe&quot; /ST 09:00 /DU 17:00 /RI 120 /K" />
    <CustomAction Id="RemoveScheduledTaskInterval"
        Return="check"
        Impersonate="no"
+40 −0
Original line number Diff line number Diff line
namespace mbackupw
{
    partial class Form1
    {
        /// <summary>
        ///  Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <summary>
        ///  Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        ///  Required method for Designer support - do not modify
        ///  the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.components = new System.ComponentModel.Container();
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(800, 450);
            this.Text = "mbackupw";
        }

        #endregion
    }
}
Loading