Skip to content

Commit

Permalink
cybozu.cn
Browse files Browse the repository at this point in the history
  • Loading branch information
hatashinya committed Jan 14, 2015
1 parent 76c2827 commit 808bd80
Show file tree
Hide file tree
Showing 9 changed files with 86 additions and 43 deletions.
2 changes: 1 addition & 1 deletion CBLabs.CybozuConnect/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public App(string url)
{
this.cybozuType = CybozuType.Garoon;
}
else if (url.IndexOf(".cybozu.com/g/") >= 0)
else if (url.IndexOf(".cybozu.com/g/") >= 0 || url.IndexOf(".cybozu.cn/g/") >= 0)
{
this.cybozuType = CybozuType.GaroonCloud;
}
Expand Down
2 changes: 1 addition & 1 deletion CBLabs.CybozuConnect/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.*")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.1")]
[assembly: AssemblyInformationalVersion("1.0.5")]
77 changes: 41 additions & 36 deletions Cybozu.CrossSync Setup/Cybozu.CrossSync Setup.vdproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
}
"Entry"
{
"MsmKey" = "8:_09FEF9D5331D4F6C8D8D3ED69E020106"
"OwnerKey" = "8:_086B4B3C691D4C13B634EF324B765A33"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_5C9C60BEC7724B23AD508ABD0AE94915"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
Expand Down Expand Up @@ -51,12 +57,6 @@
}
"Entry"
{
"MsmKey" = "8:_EFD307D5C5AA61530E10C51F20AAFD1E"
"OwnerKey" = "8:_086B4B3C691D4C13B634EF324B765A33"
"MsmSig" = "8:_UNDEFINED"
}
"Entry"
{
"MsmKey" = "8:_FDFCB6CA4AAF4256A35E559E9656EE3B"
"OwnerKey" = "8:_UNDEFINED"
"MsmSig" = "8:_UNDEFINED"
Expand All @@ -76,7 +76,7 @@
"Entry"
{
"MsmKey" = "8:_UNDEFINED"
"OwnerKey" = "8:_EFD307D5C5AA61530E10C51F20AAFD1E"
"OwnerKey" = "8:_09FEF9D5331D4F6C8D8D3ED69E020106"
"MsmSig" = "8:_UNDEFINED"
}
}
Expand All @@ -87,7 +87,7 @@
"DisplayName" = "8:Debug"
"IsDebugOnly" = "11:TRUE"
"IsReleaseOnly" = "11:FALSE"
"OutputFilename" = "8:Debug\\CrossSync-1.0.4.msi"
"OutputFilename" = "8:Debug\\CrossSync-1.0.5.msi"
"PackageFilesAs" = "3:2"
"PackageFileSize" = "3:-2147483648"
"CabType" = "3:1"
Expand Down Expand Up @@ -124,7 +124,7 @@
"DisplayName" = "8:Release"
"IsDebugOnly" = "11:FALSE"
"IsReleaseOnly" = "11:TRUE"
"OutputFilename" = "8:Release\\CrossSync-1.0.4.msi"
"OutputFilename" = "8:Release\\CrossSync-1.0.5.msi"
"PackageFilesAs" = "3:2"
"PackageFileSize" = "3:-2147483648"
"CabType" = "3:1"
Expand Down Expand Up @@ -240,10 +240,21 @@
}
"File"
{
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_5C9C60BEC7724B23AD508ABD0AE94915"
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_09FEF9D5331D4F6C8D8D3ED69E020106"
{
"SourcePath" = "8:CustomActionCreateStartup.vbs"
"TargetName" = "8:CustomActionCreateStartup.vbs"
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
"AssemblyAsmDisplayName" = "8:CBLabs.CybozuConnect, Version=1.0.5491.32387, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies"
{
"_09FEF9D5331D4F6C8D8D3ED69E020106"
{
"Name" = "8:CBLabs.CybozuConnect.dll"
"Attributes" = "3:512"
}
}
"SourcePath" = "8:CBLabs.CybozuConnect.dll"
"TargetName" = "8:"
"Tag" = "8:"
"Folder" = "8:_37AD96AEB9844BD9AA5F99D338D38B51"
"Condition" = "8:"
Expand All @@ -257,13 +268,13 @@
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:TRUE"
"IsDependency" = "11:FALSE"
"IsDependency" = "11:TRUE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_795121C28ABB4EBBA07410DA20DFD6A1"
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_5C9C60BEC7724B23AD508ABD0AE94915"
{
"SourcePath" = "8:CustomActionStop.vbs"
"TargetName" = "8:CustomActionStop.vbs"
"SourcePath" = "8:CustomActionCreateStartup.vbs"
"TargetName" = "8:CustomActionCreateStartup.vbs"
"Tag" = "8:"
"Folder" = "8:_37AD96AEB9844BD9AA5F99D338D38B51"
"Condition" = "8:"
Expand All @@ -280,10 +291,10 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_C6D37602E29244DE8F4F266009C7EC66"
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_795121C28ABB4EBBA07410DA20DFD6A1"
{
"SourcePath" = "8:CustomActionStart.vbs"
"TargetName" = "8:CustomActionStart.vbs"
"SourcePath" = "8:CustomActionStop.vbs"
"TargetName" = "8:CustomActionStop.vbs"
"Tag" = "8:"
"Folder" = "8:_37AD96AEB9844BD9AA5F99D338D38B51"
"Condition" = "8:"
Expand All @@ -300,10 +311,10 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_CED1854AE9AE4726804FC56CD37BEF85"
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_C6D37602E29244DE8F4F266009C7EC66"
{
"SourcePath" = "8:CustomActionDeleteStartup.vbs"
"TargetName" = "8:CustomActionDeleteStartup.vbs"
"SourcePath" = "8:CustomActionStart.vbs"
"TargetName" = "8:CustomActionStart.vbs"
"Tag" = "8:"
"Folder" = "8:_37AD96AEB9844BD9AA5F99D338D38B51"
"Condition" = "8:"
Expand All @@ -320,16 +331,10 @@
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{9F6F8455-1EF1-4B85-886A-4223BCC8E7F7}:_EFD307D5C5AA61530E10C51F20AAFD1E"
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_CED1854AE9AE4726804FC56CD37BEF85"
{
"AssemblyRegister" = "3:1"
"AssemblyIsInGAC" = "11:FALSE"
"AssemblyAsmDisplayName" = "8:CBLabs.CybozuConnect, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"
"ScatterAssemblies"
{
}
"SourcePath" = "8:CBLabs.CybozuConnect.dll"
"TargetName" = "8:"
"SourcePath" = "8:CustomActionDeleteStartup.vbs"
"TargetName" = "8:CustomActionDeleteStartup.vbs"
"Tag" = "8:"
"Folder" = "8:_37AD96AEB9844BD9AA5F99D338D38B51"
"Condition" = "8:"
Expand All @@ -343,7 +348,7 @@
"PackageAs" = "3:1"
"Register" = "3:1"
"Exclude" = "11:TRUE"
"IsDependency" = "11:TRUE"
"IsDependency" = "11:FALSE"
"IsolateTo" = "8:"
}
"{1FB2D0AE-D3B9-43D4-B9DD-F88EC61E35DE}:_FDFCB6CA4AAF4256A35E559E9656EE3B"
Expand Down Expand Up @@ -433,20 +438,20 @@
{
"Name" = "8:Microsoft Visual Studio"
"ProductName" = "8:Cybozu CrossSync"
"ProductCode" = "8:{58792729-F14F-477D-97BF-67097376C382}"
"PackageCode" = "8:{6F035257-C61B-4DC9-BB9C-36BA62CE7252}"
"ProductCode" = "8:{840E0454-6B8F-4228-A1D5-F6E09A650102}"
"PackageCode" = "8:{5763D3C6-15E8-4BC1-B7B6-71C3CF4790C9}"
"UpgradeCode" = "8:{64C6CDDD-B1F1-4D42-8DAD-00A63A741633}"
"AspNetVersion" = "8:4.0.30319.0"
"RestartWWWService" = "11:FALSE"
"RemovePreviousVersions" = "11:TRUE"
"DetectNewerInstalledVersion" = "11:TRUE"
"InstallAllUsers" = "11:FALSE"
"ProductVersion" = "8:1.0.4"
"ProductVersion" = "8:1.0.5"
"Manufacturer" = "8:Cybozu Labs"
"ARPHELPTELEPHONE" = "8:"
"ARPHELPLINK" = "8:"
"Title" = "8:Cybozu CrossSync Setup"
"Subject" = "8:Cybozu CrossSync 1.0.4"
"Subject" = "8:Cybozu CrossSync 1.0.5"
"ARPCONTACT" = "8:Cybozu Labs, Inc."
"Keywords" = "8:"
"ARPCOMMENTS" = "8:"
Expand Down
2 changes: 1 addition & 1 deletion Cybozu.CrossSync/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.*")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.4")]
[assembly: AssemblyInformationalVersion("1.0.5")]
11 changes: 10 additions & 1 deletion Cybozu.CrossSync/Resources.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions Cybozu.CrossSync/Resources.ja.resx
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,7 @@ Cybozu CrossSync はサイボウズ Office の連携APIを利用しています
<data name="ProductName" xml:space="preserve">
<value>Cybozu CrossSync</value>
</data>
<data name="URLIsInvalid" xml:space="preserve">
<value>無効なURLです。</value>
</data>
</root>
3 changes: 3 additions & 0 deletions Cybozu.CrossSync/Resources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -145,4 +145,7 @@ Cybozu CrossSync uses Cybozu Office API. Depending on the version of the prorudc
<data name="ProductName" xml:space="preserve">
<value>Cybozu CrossSync</value>
</data>
<data name="URLIsInvalid" xml:space="preserve">
<value>URL is invalid.</value>
</data>
</root>
24 changes: 23 additions & 1 deletion Cybozu.CrossSync/SettingForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,19 @@ private bool Apply()
}

string url1 = TrimUrl(this.firstUrl.Text);
if (string.IsNullOrEmpty(url1))
{
MessageBox.Show(string.Format(Resources.Account1Error, Resources.URLIsInvalid), Resources.ProductName);
return false;
}

string url2 = TrimUrl(this.secondUrl.Text);
if (string.IsNullOrEmpty(url2))
{
MessageBox.Show(string.Format(Resources.Account2Error, Resources.URLIsInvalid), Resources.ProductName);
return false;
}

App app;

try
Expand All @@ -155,6 +167,11 @@ private bool Apply()
}
return false;
}
catch (UriFormatException ex)
{
MessageBox.Show(ex.Message);
return false;
}
catch (WebException ex)
{
MessageBox.Show(ex.Message);
Expand All @@ -179,6 +196,11 @@ private bool Apply()
}
return false;
}
catch (UriFormatException ex)
{
MessageBox.Show(ex.Message);
return false;
}
catch (WebException ex)
{
MessageBox.Show(ex.Message);
Expand Down Expand Up @@ -261,7 +283,7 @@ protected void Sync(bool showError)

protected string TrimUrl(string url)
{
string[] EndMarks = { ".exe", ".cgi", ".cybozu.com/g/" };
string[] EndMarks = { ".exe", ".cgi", ".cybozu.com/g/", ".cybozu.cn/g/" };
foreach (string endMark in EndMarks)
{
if (url.EndsWith(endMark)) return url;
Expand Down
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,13 @@ Cybozu CrossSync は2つのサイボウズ製品のスケジュールをバッ
--------------
### クライアント側
* Windows 7
* Windows 8

インストール
------------
サーバーマシンではなく、 **クライアントのPCにインストール** します。

1. **[ダウンロード](http://hatashinya.github.io/cybozu-crosssync/)** ページからインストーラー( **CrossSync-1.0.*.msi** )をダウンロードします。
1. **[Releases](https://github.com/hatashinya/cybozu-crosssync/releases)** ページからインストーラー( **CrossSync-1.0.*.msi** )をダウンロードします。
2. ダウンロードしたインストーラーをダブルクリックして起動します。
3. インストーラーにしたがって、以下の項目を指定します。
* インストール場所
Expand All @@ -51,7 +52,7 @@ URLの指定について
-----------------
同期するサイボウズ製品のURLの指定方法は以下の通りとなります。

* サイボウズ(R) Office(R) 8 または 9
* サイボウズ(R) Office(R)
* 例) `http://example.com/scripts/cbag/ag.exe`
* 例) `http://example.com/cgi-bin/cbag/ag.cgi`
* サイボウズ(R) ガルーン(R)
Expand Down

0 comments on commit 808bd80

Please sign in to comment.