Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from trackpadpro/dev
the error that remains appears to be a choice of shell/go functions moby/moby#15272 moby/moby#17738 golang/go#11914
- Loading branch information
Showing
12 changed files
with
123 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,7 +33,7 @@ cd .\tppsss\ | |
### Run Commands | ||
|
||
``` | ||
.\tripleS.exe | ||
.\tppsss.exe | ||
break #end the program | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: Functional Example | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
schedule: | ||
- cron: '0 5 * * 5' | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
name: Build with Initial Boot | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: '>=1.16.15' | ||
- name: Install libcurl | ||
run: vcpkg install curl:x64-windows | ||
- name: Configure and Build | ||
run: | | ||
cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE="${env:VCPKG_INSTALLATION_ROOT}\\scripts\\buildsystems\\vcpkg.cmake" | ||
.\\bootstrap.bat -deps on | ||
- name: Initial Boot Example | ||
run: powershell -ExecutionPolicy ByPass -File .\\scripts\\exampleExpectLua.ps1 -STEAM_LOGIN_COOKIE ${{secrets.STEAM_LOGIN_COOKIE}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
|
||
[submodule "deps/expect"] | ||
path = deps/expect | ||
url = https://github.com/hymkor/expect | ||
ignore = dirty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,51 @@ | ||
cmake_minimum_required(VERSION 3.22.1) | ||
|
||
project(tripleS) | ||
|
||
set(EXECUTABLE_OUTPUT_PATH ${CMAKE_SOURCE_DIR}) | ||
project(tppsss) | ||
|
||
add_executable(${PROJECT_NAME} | ||
src/main.cpp | ||
) | ||
|
||
set_target_properties(${PROJECT_NAME} PROPERTIES | ||
RUNTIME_OUTPUT_DIRECTORY $<1:${CMAKE_SOURCE_DIR}> | ||
) | ||
|
||
add_subdirectory(src) | ||
|
||
file(MAKE_DIRECTORY data/auth) | ||
|
||
find_package(CURL REQUIRED) | ||
|
||
include_directories( | ||
src/include | ||
"${CURL_INCLUDE_DIRS}" | ||
${CURL_INCLUDE_DIRS} | ||
) | ||
|
||
target_link_libraries(${PROJECT_NAME} | ||
controlTheory | ||
CURL::libcurl | ||
) | ||
) | ||
|
||
option(BUILD_DEPS "Initialize dependencies while configuring" OFF) | ||
if(BUILD_DEPS) | ||
if(EXISTS ${CMAKE_SOURCE_DIR}/.git) | ||
execute_process(COMMAND git submodule update --init --recursive | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} | ||
) | ||
if(EXISTS ${CMAKE_SOURCE_DIR}/deps/expect/make.cmd) | ||
execute_process(COMMAND ${CMAKE_SOURCE_DIR}/deps/expect/make.cmd | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/deps/expect | ||
RESULT_VARIABLE EXPECT_MAKE_RESULT | ||
) | ||
if(EXPECT_MAKE_RESULT EQUAL "0") | ||
message(STATUS "Expect.lua executable created in ${CMAKE_SOURCE_DIR}/deps/expect/") | ||
else() | ||
message(WARNING "Expect.lua executable creation failed") | ||
endif() | ||
else() | ||
message(WARNING "Expect.lua files corrupted") | ||
endif() | ||
else() | ||
message(WARNING "Dependency configuration failed") | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,10 @@ | ||
if(-not(Test-Path -LiteralPath '.\data\')){ | ||
try{ | ||
New-Item -Path '.\data\' -ItemType Directory -ErrorAction Stop | Out-Null #-Force | ||
} | ||
catch{ | ||
Write-Error -Message "Unable to create data directory. Error: $_" -ErrorAction Stop | ||
} | ||
} | ||
param($deps) | ||
|
||
if(-not(Test-Path -LiteralPath '.\data\auth')){ | ||
try{ | ||
New-Item -Path '.\data\auth' -ItemType Directory -ErrorAction Stop | Out-Null #-Force | ||
} | ||
catch{ | ||
Write-Error -Message "Unable to create authentication directory. Error: $_" -ErrorAction Stop | ||
} | ||
if($deps -eq 'on'){ | ||
cmake -S . -B .\build\ -DBUILD_DEPS=ON | ||
} | ||
else{ | ||
cmake -S . -B .\build\ -DBUILD_DEPS=OFF | ||
} | ||
|
||
cmake -S . -B .\build\ | ||
cmake --build .\build\ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
echo(true) | ||
if spawn(arg[0]..[[\..\..\tppsss.exe]]) then | ||
timeout = 2 | ||
RC = expect("[y/n]") | ||
timeout = 3600 | ||
echo(false) | ||
if RC==0 then | ||
send("n\r") | ||
end | ||
expect("Online") | ||
send("setup\r") | ||
expect("cookie:") | ||
send(arg[1].."\r") | ||
expect("steamLoginSecure set") | ||
send("break\r") | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
param($STEAM_LOGIN_COOKIE) | ||
|
||
$pathToScripts = $MyInvocation.MyCommand.Path | ||
|
||
$env:Path += ";$pathToScripts\..\..\deps\expect\" | ||
|
||
expect.exe $pathToScripts\..\exampleExpect.lua $STEAM_LOGIN_COOKIE |