Skip to content

Commit 5285e0f

Browse files
committed
Add appveyor.yml and remove binary files
1 parent 6cd72ab commit 5285e0f

File tree

10 files changed

+131
-6
lines changed

10 files changed

+131
-6
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
/debug
2+
/release
3+
*.ilk
14
*.obj
25
*.pdb
6+
*.exe

Makefile

+7-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
VCVARSALL="${ProgramFiles(x86)}\Microsoft Visual Studio 14.0\VC\vcvarsall"
2-
build:
3-
${VCVARSALL} amd64 && cl /EHsc emit-x.cpp /Fox64\emit-x.obj /Fex64\emit-x.exe
4-
${VCVARSALL} amd64_x86 && cl /EHsc emit-x.cpp /Fox86\emit-x.obj /Fex86\emit-x.exe
1+
build:
2+
build.bat Release build
3+
debug:
4+
build.bat Debug build
5+
clean:
6+
build.bat Release clean
7+
build.bat Debug clean

README.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Emit X
22

3-
Emit X allows assign keyboard shortcut to Surface Pen Button (click, double
3+
[![Build status](https://ci.appveyor.com/api/projects/status/215tndv748iwpxh4?svg=true)](https://ci.appveyor.com/project/retorillo/emit-x)
4+
5+
Emit X allows to assign keyboard shortcut to Surface Pen Button (click, double
46
click, press and hold). Good for digital-painting.
57

68
Duplicate `x64\emit-x.exe` (for 64bit) or `x86/emit-x.exe` (for 32bit), and
@@ -20,7 +22,14 @@ Name is case-insensitive. Currently, supports the following keys and its combina
2022

2123
This is "workaround" app. I'm expecting Microsoft implement genuine feature.
2224

23-
Tested on Surface Pro 4 + Windows 10 + Photoshop CC. Works on Windows 8 and later.
25+
Tested on Surface Pro 4 + Windows 10 + Photoshop CC. Works on Windows 8.1 and later.
26+
27+
## Downloads
28+
29+
Executable file is no longer included in this repository. Please download at:
30+
31+
- [Github Releases](https://github.com/retorillo/emit-x/releases) (Recommended)
32+
- [AppVeyor Artifacts](https://ci.appveyor.com/project/retorillo/emit-x)
2433

2534
## License
2635

appveyor.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 1.0.{build}
2+
image: Visual Studio 2015
3+
platform:
4+
- x64
5+
- x86
6+
configuration:
7+
- Debug
8+
- Release
9+
artifacts:
10+
- path: $(configuration)\$(platform)\emit-x.exe
11+
build:
12+
project: emit-x.xml
13+
verbosity: normal

build.bat

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
@echo off
2+
setlocal ENABLEDELAYEDEXPANSION
3+
4+
rem Requirements for Development Computer
5+
rem - Visual Studio 2017 or 2015 (Tested on Community Edition)
6+
rem - Windows Universal CRT SDK
7+
rem - Windows SDK 8.1
8+
9+
SET _TARGET_PLATFORM=8.1
10+
11+
set VS2017x64=HKLM\SOFTWARE\WOW6432Node\Microsoft\VisualStudio\SxS\VS7
12+
set VS2017x86=HKLM\SOFTWARE\Microsoft\VisualStudio\SxS\VS7
13+
set VS2015=HKLM\SOFTWARE\Microsoft\MSBuild\ToolsVersions\14.0
14+
15+
reg query %VS2017x64% /v 15.0 2> NUL > NUL
16+
if "%ERRORLEVEL%"=="0" set VS2017=%VS2017x64% && goto use_vs2017
17+
reg query %VS2017x86% /v 15.0 2> NUL > NUL
18+
if "%ERRORLEVEL%"=="0" set VS2017=%VS2017x86% && goto use_vs2017
19+
goto use_vs2015
20+
21+
:use_vs2017
22+
set _PLATFORM_TOOLSET=v141
23+
for /f "usebackq skip=2 tokens=2,*" %%a in (`reg query "!VS2017!" /v 15.0`) do (
24+
set MSBUILD=%%bMSBuild\15.0\Bin\msbuild
25+
goto build
26+
)
27+
goto error
28+
29+
:use_vs2015
30+
echo Visual Studio 2017 is not found, Trying to use Visual Studio 2015...
31+
set _PLATFORM_TOOLSET=v140
32+
for /f "usebackq skip=2 tokens=2,*" %%a in (`reg query "!VS2015!" /v MSBuildToolsPath`) do (
33+
set MSBUILD=%%bmsbuild
34+
goto build
35+
)
36+
goto error
37+
38+
:error
39+
echo Cannot detect MSBuild on this machine. >&2
40+
exit /b 1
41+
42+
:build
43+
echo MSBuild: !MSBUILD!
44+
"!MSBUILD!" build.xml /p:Configuration=%1 /p:Platform=x86 /t:%2
45+
"!MSBUILD!" build.xml /p:Configuration=%1 /p:Platform=x64 /t:%2
46+
:end
47+
endlocal

build.xml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<ItemGroup>
4+
<ProjectConfiguration Include="Debug|Win32">
5+
<Configuration>Debug</Configuration>
6+
<Platform>Win32</Platform>
7+
</ProjectConfiguration>
8+
<ProjectConfiguration Include="Release|Win32">
9+
<Configuration>Release</Configuration>
10+
<Platform>Win32</Platform>
11+
</ProjectConfiguration>
12+
<ProjectConfiguration Include="Debug|x64">
13+
<Configuration>Debug</Configuration>
14+
<Platform>x64</Platform>
15+
</ProjectConfiguration>
16+
<ProjectConfiguration Include="Release|x64">
17+
<Configuration>Release</Configuration>
18+
<Platform>x64</Platform>
19+
</ProjectConfiguration>
20+
</ItemGroup>
21+
<PropertyGroup Label="Globals">
22+
<WindowsTargetPlatformVersion>$(_TARGET_PLATFORM)</WindowsTargetPlatformVersion>
23+
</PropertyGroup>
24+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.default.props" />
25+
<PropertyGroup Label="Globals">
26+
<ConfigurationType>Application</ConfigurationType>
27+
<PlatformToolset>$(_PLATFORM_TOOLSET)</PlatformToolset>
28+
<ProjectName>emit-x</ProjectName>
29+
<OutDir>$(Configuration.toLower())\$(PlatformTarget)\</OutDir>
30+
<IntDir>$(OutDir)\cache\</IntDir>
31+
<TLogLocation>$(IntDir)</TLogLocation>
32+
</PropertyGroup>
33+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
34+
<ItemGroup>
35+
<ClCompile Include="emit-x.cpp" />
36+
</ItemGroup>
37+
<ItemGroup>
38+
<ClInclude Include="emit-x.h" />
39+
</ItemGroup>
40+
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Targets" />
41+
</Project>

x64/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Executable file is no longer included in this repository. Please download at:
2+
3+
- [Github Releases](https://github.com/retorillo/emit-x/releases) (Recommended)
4+
- [AppVeyor Artifacts](https://ci.appveyor.com/project/retorillo/emit-x)

x64/emit-x.exe

-328 KB
Binary file not shown.

x86/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Executable file is no longer included in this repository. Please download at:
2+
3+
- [Github Releases](https://github.com/retorillo/emit-x/releases) (Recommended)
4+
- [AppVeyor Artifacts](https://ci.appveyor.com/project/retorillo/emit-x)

x86/emit-x.exe

-246 KB
Binary file not shown.

0 commit comments

Comments
 (0)