Граф коммитов

11 Коммитов

Автор SHA1 Сообщение Дата
Matthew John Cheetham 1743f03498
Move to .NET Core 3.1 (LTS) 2020-02-28 16:22:27 +00:00
Matthew John Cheetham abb3e67ef0
Remove all vestiges of the mount process from C# code
Remove all vestiges of the mount process and related actions (mount,
unmount) from the C# code and documentation.

Mount references are left in the Mac notifications app for now so we can
use that code as a reference to add upgrade notifications later, like we
have on Windows.
2020-01-28 14:24:49 +00:00
Matthew John Cheetham 2e1f7f1fa6
Create the correct UpgradeOrchestrator for each platform
During the port to .NET Core 3 and the build system update, an #if
directive was left behind which was being used to select the correct
UpgradeOrchestrator for each OS platform. The result was that upgrade
would always fail on all platforms with a 'NotImplementedException'.

Replace the #if directive with a runtime `IsOSPlatform` check.
2020-01-27 14:07:47 +00:00
Derrick Stolee 61d10b60dc Remove log message from ShowStatusWhileRunning
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
2019-11-25 08:01:11 -05:00
Derrick Stolee 34af143e38 Revert "Merge pull request #239: Remove .scalar directory from enlistment root"
This reverts commit 0b1cae69eb, reversing
changes made to 146ebe4d9f.

Signed-off-by: Derrick Stolee <stolee@gmail.com>
2019-11-21 17:24:20 -05:00
Derrick Stolee 0ccab3180a Remove log message from ShowStatusWhileRunning
Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
2019-11-14 10:08:23 -05:00
Matthew John Cheetham 60b19f2004
Upgrade Scalar.Upgrader project 2019-11-07 16:05:43 +00:00
Al Ameen Shah 41bd1107bf Enable native notifciations on Windows (1)
- Added a few new classes. WinToastNotifier to interface
  with Windows Toast APIs. GVFSToastRequestHandler to parse
  toast notification payload contained in incoming requests
  from GVFS client processes. GVFSServiceUI class to create
  ServiceUI pipe and handle toast notification requests. UT
  class for GVFSToastRequestHandler.
- Updated project files.
- Minor corrections in Toast XML element class ActionItem.cs.
2019-09-24 12:40:50 -04:00
John Briggs 6a8a91fb83 Standardize on LF thoughout the repository. 2019-08-12 20:07:41 -04:00
Derrick Stolee 90e8c1bd69 [REPLACE] Replace old name in all files
This will change many files, and likely not build

Here is the script used to do the replacement:

```

NEWNAME="Scalar"
LOWERNAME="scalar"

for file in $(find . -type f -name '*')
    do
        if [[ $file == *.png ]]
        then
            continue
        fi
        if [[ $file == *.ico ]]
        then
            continue
        fi
        if [[ $file == *cddl1.txt ]]
        then
            continue
        fi
        if [[ $file == *.rc ]]
        then
            continue
        fi
        if [[ $file == *index_v4 ]]
        then
            continue
        fi
        if [[ $file == ./.git/* ]]
        then
            continue
        fi

        sed -i .bak "s/GVFS/$NEWNAME/g" "$file"
        sed -i .bak "s/VFS For Git/$NEWNAME/g" "$file"
        sed -i .bak "s/VFS for Git/$NEWNAME/g" "$file"
        sed -i .bak "s/VFSForGit/$NEWNAME/g" "$file"
        sed -i .bak "s/vfsforgit/$LOWERNAME/g" "$file"
        sed -i .bak "s/VFS/$NEWNAME/g" "$file"
        sed -i .bak "s/gvfs/$LOWERNAME/g" "$file"
    done

git commit -a -s -m "[REPLACE] Replace old name in all files" -m "This will change many files, and likely not build"
git clean -xdf
```

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
2019-08-10 12:41:55 -04:00
Derrick Stolee fb3a2a3635 [RENAME] Rename all files
This should keep all blobs the same, for exact rename matches.

Here is the script used to generate these renames:

```

NEWNAME="Scalar"
LOWERNAME="scalar"

rm -rf .git
git init
git remote add origin https://github.com/microsoft/gsd

git fetch origin master
git checkout --detach
git branch -f rename origin/master
git reset --hard origin/master
git checkout rename
git clean -xdf

mv GVFS GVFS-Old
mv GVFS-Old/* .
rm -rf GVFS-Old

mv "GVFS.Notifications/VFSForGit.Mac/StatusMenuItem/UI/Assets.xcassets/VFS For Git.appiconset" \
   "GVFS.Notifications/VFSForGit.Mac/StatusMenuItem/UI/Assets.xcassets/$NEWNAME.appiconset"

rename_in_directory () {
    (
        cd $1 &&
        for file in $(ls | grep "$2")
        do
            mv "$file" "$(echo "$file" | sed "s/$2/$3/g")"
        done

        for file in $(find . -maxdepth 1 -mindepth 1 -type d)
        do
            if [ "$file" != "./.git" ]
            then
                rename_in_directory "$file" "$2" "$3"
            fi
        done
    )
}

echo "Renaming"
rename_in_directory . "GVFS" "$NEWNAME"
rename_in_directory . "gvfs" "$NEWNAME"
rename_in_directory . "VFSForGit" "$NEWNAME"
rename_in_directory . "vfsforgit" "$LOWERNAME"
rename_in_directory . "VFS" "$NEWNAME"

git add .
git commit -q -s -m "[RENAME] Rename all files" -m "This should keep all blobs the same, for exact rename matches."

echo "Looking for old names:"
git ls-tree -r HEAD | grep VFS
```

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
2019-08-10 12:34:22 -04:00