Skip to content

Commit

Permalink
Zip package
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-tomin committed Jul 15, 2014
1 parent 75b65c1 commit cb135ec
Show file tree
Hide file tree
Showing 8 changed files with 161 additions and 4 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ Total Commander plugin for Azure Blob service

Prerequisites
---------------
- .NET Framework 4.5
- Azure SDK
- .NET Framework 4.0 Client Profile
- Total Commander 8.0+
- To work with Development storage - latest Storage Emulator is required.

Download
Expand All @@ -21,7 +21,6 @@ Known issues
---------------
- 64 bit not supported (cannot compile)
- Cannot remove account once added (all blobs will be removed)
- Only Block blobs are supported
- Background copying not supported
- No Progress

Expand Down
6 changes: 6 additions & 0 deletions Sources/Tomin.TotalCmd.AzureBlob.TestClient/App.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0,Profile=Client"/>
</startup>
</configuration>
20 changes: 20 additions & 0 deletions Sources/Tomin.TotalCmd.AzureBlob.TestClient/Program.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tomin.TotalCmd.AzureBlob.TestClient
{
class Program
{
static void Main(string[] args)
{
IEnumerator en;
var data = new AzureBlobWfxPlugin().FindFirst("\\", out en);

Console.WriteLine(data.FileName);
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Tomin.TotalCmd.AzureBlob.TestClient")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Tomin.TotalCmd.AzureBlob.TestClient")]
[assembly: AssemblyCopyright("Copyright © 2014")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("9f328b00-0a7a-459d-b399-9566bceffda8")]

// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{92A177B8-41A7-4C41-BD8C-BD608F006763}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Tomin.TotalCmd.AzureBlob.TestClient</RootNamespace>
<AssemblyName>Tomin.TotalCmd.AzureBlob.TestClient</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="TotalCommander.Plugin">
<HintPath>..\..\Build\TotalCommander.Plugin.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Tomin.TotalCmd.AzureBlob\Tomin.TotalCmd.AzureBlob.csproj">
<Project>{7269099e-553c-4ec4-8e62-7e639adb70b8}</Project>
<Name>Tomin.TotalCmd.AzureBlob</Name>
</ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
11 changes: 11 additions & 0 deletions Sources/Tomin.TotalCmd.AzureBlob.sln
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ VisualStudioVersion = 12.0.30501.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tomin.TotalCmd.AzureBlob", "Tomin.TotalCmd.AzureBlob\Tomin.TotalCmd.AzureBlob.csproj", "{7269099E-553C-4EC4-8E62-7E639ADB70B8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tomin.TotalCmd.AzureBlob.TestClient", "Tomin.TotalCmd.AzureBlob.TestClient\Tomin.TotalCmd.AzureBlob.TestClient.csproj", "{92A177B8-41A7-4C41-BD8C-BD608F006763}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{ED5765AB-4AFD-497E-A734-E1EF1ED7874E}"
ProjectSection(SolutionItems) = preProject
..\README.md = ..\README.md
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand All @@ -15,6 +22,10 @@ Global
{7269099E-553C-4EC4-8E62-7E639ADB70B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7269099E-553C-4EC4-8E62-7E639ADB70B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7269099E-553C-4EC4-8E62-7E639ADB70B8}.Release|Any CPU.Build.0 = Release|Any CPU
{92A177B8-41A7-4C41-BD8C-BD608F006763}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{92A177B8-41A7-4C41-BD8C-BD608F006763}.Debug|Any CPU.Build.0 = Debug|Any CPU
{92A177B8-41A7-4C41-BD8C-BD608F006763}.Release|Any CPU.ActiveCfg = Release|Any CPU
{92A177B8-41A7-4C41-BD8C-BD608F006763}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
3 changes: 3 additions & 0 deletions Sources/Tomin.TotalCmd.AzureBlob/AzureBlobWfxPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
using Tomin.TotalCmd.AzureBlob.Properties;
using System.Threading.Tasks;
using System.Threading;
using System.Globalization;


namespace Tomin.TotalCmd.AzureBlob
Expand All @@ -33,6 +34,7 @@ public class AzureBlobWfxPlugin : TotalCommanderWfxPlugin

public AzureBlobWfxPlugin()
{
Thread.CurrentThread.CurrentUICulture = CultureInfo.InvariantCulture;
}

public override string PluginName
Expand Down Expand Up @@ -260,6 +262,7 @@ public override CustomIconResult GetCustomIcon(ref string remoteName, CustomIcon
return base.GetCustomIcon(ref remoteName, extractIconFlag, out icon);
}


//-- Helpers

private IEnumerable<FindData> GetStorageAccounts()
Expand Down
16 changes: 15 additions & 1 deletion Sources/Tomin.TotalCmd.AzureBlob/Tomin.TotalCmd.AzureBlob.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,23 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="..\..\Build\TotalCommander.Plugin.targets" />
<Target Name="AfterBuild">

<PropertyGroup>
<MSBuildCommunityTasksPath>$(MSBuildProjectDirectory)\..\..\Build</MSBuildCommunityTasksPath>
</PropertyGroup>

<Import Project="$(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.targets"/>

<Target Name="AfterBuild">
<CallTarget Targets="GenerateTotalCommanderWfxPlugin" />
</Target>
<Target Name="CreateZip" AfterTargets="AfterBuild">
<ItemGroup>
<Binaries Include="$(TargetDir)\**\*.*" Exclude="$(TargetDir)\*.zip" />
</ItemGroup>
<Zip Files="@(Binaries)" WorkingDirectory="$(TargetDir)" ZipFileName="$(TargetDir)$(TargetName).zip" />

</Target>
<PropertyGroup>
<PostBuildEvent>xcopy "$(TargetDir)*" "C:\Program Files\TotalComander\Plugins\wfx\AzureBlob\" /Y /S</PostBuildEvent>
</PropertyGroup>
Expand Down

0 comments on commit cb135ec

Please sign in to comment.