diff --git a/assets/pipeline-test2.yaml b/assets/pipeline-test2.yaml index a829320..6223331 100644 --- a/assets/pipeline-test2.yaml +++ b/assets/pipeline-test2.yaml @@ -1,34 +1,98 @@ --- property: - workspace: . + workspace: C:/Users/r0bin/AppData/Roaming/DarkSoulsIII + saveFolder: /01100001112a7a14 + savePath: /DS30000.sl2 pipeline: id: main workflow: - - exe: createApp - - exe: shell - - exe: buildDart + - exe: read-web + - exe: json-read-web + - exe: json-read-local + - exe: diff + - if: + condition-bool: == true + on-true: + - exe: info + - if: + condition-date: < + on-true: + - exe: json-write-local + - exe: upload + - if: + condition-date: > + on-true: + - exe: json-write-web + - exe: download + commands: -### Version 쓰기 -- command: CreateAppData - id: createApp +- command: FileInfo + id: info param: - scm: Git - name: OTO - relativeAssetPath: assets/data - setVersion: <@property.version> - setHash: <@property.hash> + path: + setInfo: <@property.info> -- command: Shell - id: shell +- command: WebRequest + id: read-web param: - commands: - - source ~/.bash_profile + url: https://toki-labs.com/cdn/save/darksoulIII/save.json + setResponse: <@property.web> -### 실행가능한 파일로 빌드 -- command: BuildDartCompile - id: buildDart +- command: JsonReader + id: json-read-web param: - targetDartFile: "./bin/main.dart" - buildFileName: oto + json: + pair: + - from: lastSaved + setValue: <@property.lastSavedWeb> + +- command: JsonReaderFile + id: json-read-local + param: + path: /save.json + pair: + - from: lastSaved + setValue: <@property.lastSavedLocal> + +- command: Print + id: print + param: + message: change save file + +- command: FileDiffCheck + id: diff + param: + paths: + - + setDiff: <@property.diff> + +- command: JsonWriterFile + id: json-write-local + param: + path: /save.json + pair: + - from: lastSaved + value: + +- command: Copy + id: upload + param: + copyMap: + : \\192.168.0.97\Macintosh HD\Users\toki\docker\nginx\home\cdn\save\darksoulIII + /save.json : \\192.168.0.97\Macintosh HD\Users\toki\docker\nginx\home\cdn\save\darksoulIII + +- command: JsonWriterFile + id: json-write-web + param: + path: /save.json + pair: + - from: lastSaved + value: + +- command: Copy + id: download + param: + copyMap: + \\192.168.0.97\Macintosh HD\Users\toki\docker\nginx\home\cdn\save\darksoulIII\DS30000.sl2 : \ No newline at end of file diff --git a/assets/scheduler.yaml b/assets/scheduler.yaml index 81ac15a..72b1d33 100644 --- a/assets/scheduler.yaml +++ b/assets/scheduler.yaml @@ -7,7 +7,7 @@ scheduler: property: - workspace: /home/deck/.steam/steam/steamapps/compatdata/374320/pfx/drive_c/users/steamuser/AppData/Roaming/DarkSoulsIII + workspace: C:/Users/r0bin/AppData/Roaming/DarkSoulsIII saveFolder: /01100001112a7a14 savePath: /DS30000.sl2 @@ -83,17 +83,12 @@ commands: - from: lastSaved value: -- command: Upload +- command: Copy id: upload param: - sftp: true - port: 22 - host: toki-labs.com - user: toki - password: r0bins - map: - : /Users/toki/docker/nginx/home/cdn/save/darksoulIII - /save.json : /Users/toki/docker/nginx/home/cdn/save/darksoulIII + copyMap: + : \\192.168.0.97\Macintosh HD\Users\toki\docker\nginx\home\cdn\save\darksoulIII + /save.json : \\192.168.0.97\Macintosh HD\Users\toki\docker\nginx\home\cdn\save\darksoulIII - command: JsonWriterFile id: json-write-web @@ -103,13 +98,8 @@ commands: - from: lastSaved value: -- command: Download +- command: Copy id: download param: - sftp: true - port: 22 - host: toki-labs.com - user: toki - password: r0bins - map: - /Users/toki/docker/nginx/home/cdn/save/darksoulIII/DS30000.sl2 : \ No newline at end of file + copyMap: + \\192.168.0.97\Macintosh HD\Users\toki\docker\nginx\home\cdn\save\darksoulIII\DS30000.sl2 : \ No newline at end of file