Skip to content

Commit 5a10540

Browse files
committed
Version 0.3 first official test
1 parent 2e4e036 commit 5a10540

28 files changed

+675
-545
lines changed

.gitignore

Lines changed: 329 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,329 @@
1+
## Ignore Visual Studio temporary files, build results, and
2+
## files generated by popular Visual Studio add-ons.
3+
##
4+
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
5+
6+
# User-specific files
7+
*.suo
8+
*.user
9+
*.userosscache
10+
*.sln.docstates
11+
12+
# User-specific files (MonoDevelop/Xamarin Studio)
13+
*.userprefs
14+
15+
# Build results
16+
[Dd]ebug/
17+
[Dd]ebugPublic/
18+
[Rr]elease/
19+
[Rr]eleases/
20+
x64/
21+
x86/
22+
bld/
23+
[Bb]in/
24+
[Oo]bj/
25+
[Ll]og/
26+
27+
# Visual Studio 2015/2017 cache/options directory
28+
.vs/
29+
# Uncomment if you have tasks that create the project's static files in wwwroot
30+
#wwwroot/
31+
32+
# Visual Studio 2017 auto generated files
33+
Generated\ Files/
34+
35+
# MSTest test Results
36+
[Tt]est[Rr]esult*/
37+
[Bb]uild[Ll]og.*
38+
39+
# NUNIT
40+
*.VisualState.xml
41+
TestResult.xml
42+
43+
# Build Results of an ATL Project
44+
[Dd]ebugPS/
45+
[Rr]eleasePS/
46+
dlldata.c
47+
48+
# Benchmark Results
49+
BenchmarkDotNet.Artifacts/
50+
51+
# .NET Core
52+
project.lock.json
53+
project.fragment.lock.json
54+
artifacts/
55+
**/Properties/launchSettings.json
56+
57+
# StyleCop
58+
StyleCopReport.xml
59+
60+
# Files built by Visual Studio
61+
*_i.c
62+
*_p.c
63+
*_i.h
64+
*.ilk
65+
*.meta
66+
*.obj
67+
*.iobj
68+
*.pch
69+
*.pdb
70+
*.ipdb
71+
*.pgc
72+
*.pgd
73+
*.rsp
74+
*.sbr
75+
*.tlb
76+
*.tli
77+
*.tlh
78+
*.tmp
79+
*.tmp_proj
80+
*.log
81+
*.vspscc
82+
*.vssscc
83+
.builds
84+
*.pidb
85+
*.svclog
86+
*.scc
87+
88+
# Chutzpah Test files
89+
_Chutzpah*
90+
91+
# Visual C++ cache files
92+
ipch/
93+
*.aps
94+
*.ncb
95+
*.opendb
96+
*.opensdf
97+
*.sdf
98+
*.cachefile
99+
*.VC.db
100+
*.VC.VC.opendb
101+
102+
# Visual Studio profiler
103+
*.psess
104+
*.vsp
105+
*.vspx
106+
*.sap
107+
108+
# Visual Studio Trace Files
109+
*.e2e
110+
111+
# TFS 2012 Local Workspace
112+
$tf/
113+
114+
# Guidance Automation Toolkit
115+
*.gpState
116+
117+
# ReSharper is a .NET coding add-in
118+
_ReSharper*/
119+
*.[Rr]e[Ss]harper
120+
*.DotSettings.user
121+
122+
# JustCode is a .NET coding add-in
123+
.JustCode
124+
125+
# TeamCity is a build add-in
126+
_TeamCity*
127+
128+
# DotCover is a Code Coverage Tool
129+
*.dotCover
130+
131+
# AxoCover is a Code Coverage Tool
132+
.axoCover/*
133+
!.axoCover/settings.json
134+
135+
# Visual Studio code coverage results
136+
*.coverage
137+
*.coveragexml
138+
139+
# NCrunch
140+
_NCrunch_*
141+
.*crunch*.local.xml
142+
nCrunchTemp_*
143+
144+
# MightyMoose
145+
*.mm.*
146+
AutoTest.Net/
147+
148+
# Web workbench (sass)
149+
.sass-cache/
150+
151+
# Installshield output folder
152+
[Ee]xpress/
153+
154+
# DocProject is a documentation generator add-in
155+
DocProject/buildhelp/
156+
DocProject/Help/*.HxT
157+
DocProject/Help/*.HxC
158+
DocProject/Help/*.hhc
159+
DocProject/Help/*.hhk
160+
DocProject/Help/*.hhp
161+
DocProject/Help/Html2
162+
DocProject/Help/html
163+
164+
# Click-Once directory
165+
publish/
166+
167+
# Publish Web Output
168+
*.[Pp]ublish.xml
169+
*.azurePubxml
170+
# Note: Comment the next line if you want to checkin your web deploy settings,
171+
# but database connection strings (with potential passwords) will be unencrypted
172+
*.pubxml
173+
*.publishproj
174+
175+
# Microsoft Azure Web App publish settings. Comment the next line if you want to
176+
# checkin your Azure Web App publish settings, but sensitive information contained
177+
# in these scripts will be unencrypted
178+
PublishScripts/
179+
180+
# NuGet Packages
181+
*.nupkg
182+
# The packages folder can be ignored because of Package Restore
183+
**/[Pp]ackages/*
184+
# except build/, which is used as an MSBuild target.
185+
!**/[Pp]ackages/build/
186+
# Uncomment if necessary however generally it will be regenerated when needed
187+
#!**/[Pp]ackages/repositories.config
188+
# NuGet v3's project.json files produces more ignorable files
189+
*.nuget.props
190+
*.nuget.targets
191+
192+
# Microsoft Azure Build Output
193+
csx/
194+
*.build.csdef
195+
196+
# Microsoft Azure Emulator
197+
ecf/
198+
rcf/
199+
200+
# Windows Store app package directories and files
201+
AppPackages/
202+
BundleArtifacts/
203+
Package.StoreAssociation.xml
204+
_pkginfo.txt
205+
*.appx
206+
207+
# Visual Studio cache files
208+
# files ending in .cache can be ignored
209+
*.[Cc]ache
210+
# but keep track of directories ending in .cache
211+
!*.[Cc]ache/
212+
213+
# Others
214+
ClientBin/
215+
~$*
216+
*~
217+
*.dbmdl
218+
*.dbproj.schemaview
219+
*.jfm
220+
*.pfx
221+
*.publishsettings
222+
orleans.codegen.cs
223+
224+
# Including strong name files can present a security risk
225+
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
226+
#*.snk
227+
228+
# Since there are multiple workflows, uncomment next line to ignore bower_components
229+
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
230+
#bower_components/
231+
232+
# RIA/Silverlight projects
233+
Generated_Code/
234+
235+
# Backup & report files from converting an old project file
236+
# to a newer Visual Studio version. Backup files are not needed,
237+
# because we have git ;-)
238+
_UpgradeReport_Files/
239+
Backup*/
240+
UpgradeLog*.XML
241+
UpgradeLog*.htm
242+
ServiceFabricBackup/
243+
244+
# SQL Server files
245+
*.mdf
246+
*.ldf
247+
*.ndf
248+
249+
# Business Intelligence projects
250+
*.rdl.data
251+
*.bim.layout
252+
*.bim_*.settings
253+
*.rptproj.rsuser
254+
255+
# Microsoft Fakes
256+
FakesAssemblies/
257+
258+
# GhostDoc plugin setting file
259+
*.GhostDoc.xml
260+
261+
# Node.js Tools for Visual Studio
262+
.ntvs_analysis.dat
263+
node_modules/
264+
265+
# Visual Studio 6 build log
266+
*.plg
267+
268+
# Visual Studio 6 workspace options file
269+
*.opt
270+
271+
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
272+
*.vbw
273+
274+
# Visual Studio LightSwitch build output
275+
**/*.HTMLClient/GeneratedArtifacts
276+
**/*.DesktopClient/GeneratedArtifacts
277+
**/*.DesktopClient/ModelManifest.xml
278+
**/*.Server/GeneratedArtifacts
279+
**/*.Server/ModelManifest.xml
280+
_Pvt_Extensions
281+
282+
# Paket dependency manager
283+
.paket/paket.exe
284+
paket-files/
285+
286+
# FAKE - F# Make
287+
.fake/
288+
289+
# JetBrains Rider
290+
.idea/
291+
*.sln.iml
292+
293+
# CodeRush
294+
.cr/
295+
296+
# Python Tools for Visual Studio (PTVS)
297+
__pycache__/
298+
*.pyc
299+
300+
# Cake - Uncomment if you are using it
301+
# tools/**
302+
# !tools/packages.config
303+
304+
# Tabs Studio
305+
*.tss
306+
307+
# Telerik's JustMock configuration file
308+
*.jmconfig
309+
310+
# BizTalk build output
311+
*.btp.cs
312+
*.btm.cs
313+
*.odx.cs
314+
*.xsd.cs
315+
316+
# OpenCover UI analysis results
317+
OpenCover/
318+
319+
# Azure Stream Analytics local run output
320+
ASALocalRun/
321+
322+
# MSBuild Binary and Structured Log
323+
*.binlog
324+
325+
# NVidia Nsight GPU debugger configuration file
326+
*.nvuser
327+
328+
# MFractors (Xamarin productivity tool) working folder
329+
.mfractor/

.vs/ACC/v14/.suo

13.5 KB
Binary file not shown.

AssistantComputerControl/ACC_Updater.cs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,31 +5,31 @@
55

66
namespace AssistantComputerControl {
77
class ACC_Updater {
8-
public void check() {
8+
public void Check() {
99
string latest_version;
1010
using (WebClient client = new WebClient()) {
11-
latest_version = client.DownloadString("https://gh.albe.pw/acc/releases/latest/version.txt");
11+
latest_version = client.DownloadString("http://gh.albe.pw/acc/releases/latest/version.txt");
1212
}
1313
if (latest_version != MainProgram.softwareVersion) {
1414
//New version available
15-
MainProgram.doDebug("New software version found");
15+
MainProgram.DoDebug("New software version found (" + latest_version + ")");
1616
DialogResult dialogResult = MessageBox.Show("A new version of " + MainProgram.messageBoxTitle + " is available (v" + latest_version + "), do you wish to install it?", "New update found | " + MainProgram.messageBoxTitle, MessageBoxButtons.YesNo);
1717
if (dialogResult == DialogResult.Yes) {
18-
MainProgram.doDebug("User chose \"yes\" to install update");
19-
install();
18+
MainProgram.DoDebug("User chose \"yes\" to install update");
19+
Install();
2020
} else if(dialogResult == DialogResult.No) {
21-
MainProgram.doDebug("User did not want to install update");
21+
MainProgram.DoDebug("User did not want to install update");
2222
}
2323
} else {
24-
MainProgram.doDebug("Software up to date");
24+
MainProgram.DoDebug("Software up to date");
2525
}
2626
if (File.Exists(Path.Combine(MainProgram.dataFolderLocation, "updated.txt"))) {
2727
File.Delete("updated.txt");
2828
}
2929
}
3030

31-
public void install() {
32-
MainProgram.doDebug("Installing...");
31+
public void Install() {
32+
MainProgram.DoDebug("Installing new version...");
3333
//Create file for the updater, containing the name (and full path) of the ACC-exe which is being updated
3434
if (File.Exists(Path.Combine(MainProgram.dataFolderLocation, "updated.txt"))) {
3535
File.Delete("updated.txt");
@@ -46,7 +46,7 @@ public void install() {
4646
client.DownloadFile("https://gh.albe.pw/acc/installer/ACC_installer.exe", downloadLocation);
4747
}
4848
Process.Start(downloadLocation);
49-
MainProgram.exit();
49+
MainProgram.Exit();
5050
}
5151
}
5252
}

AssistantComputerControl/App.config

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,13 @@
1616

1717
<!-- Automatically check for updates? -->
1818
<add key="CheckForUpdates" value="true" />
19+
20+
<!-- Path of the generated Computer Action file (WITHOUT filename and extension, path only, leave empty for root) -->
21+
<add key="ActionFilePath" value="" />
22+
23+
<!-- Extension of the generated Computer Action file (without path, JUST the bare extension, E.G; txt) -->
24+
<add key="ActionFileExtension" value="txt" />
1925

20-
<!-- Path of the generated Computer Action file (filename & extension required) -->
21-
<add key="ActionFilePath" value="computerAction.txt" />
2226
<!-- The max last-edited datetime of the action-file in *seconds*.
2327
Fx. 30 means the file can be no more than 30 seconds old to make sure we're not using an old file. -->
2428
<add key="FileEditedMargin" value="30" />

0 commit comments

Comments
 (0)