@@ -73,25 +73,25 @@ jobs:
7373 - name : Rust cache
7474 uses : swatinem/rust-cache@v2
7575 with :
76- workspaces : " ./src-tauri -> target"
76+ workspaces : " ./app/ src-tauri -> target"
7777
7878 - name : edit version (linux only)
7979 if : matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
8080 run : |
81- sed -i "s/\"version\": \"[^\"]*\"/\"version\": \"${{ github.event.inputs.version }}\"/" src-tauri/tauri.conf.json
81+ sed -i "s/\"version\": \"[^\"]*\"/\"version\": \"${{ github.event.inputs.version }}\"/" app/ src-tauri/tauri.conf.json
8282
8383 - name : edit version (macos only)
8484 if : matrix.platform == 'macos-latest' # This must match the platform value defined above.
8585 run : |
86- sed -i '' "s/\"version\": \"[^\"]*\"/\"version\": \"${{ github.event.inputs.version }}\"/" src-tauri/tauri.conf.json
86+ sed -i '' "s/\"version\": \"[^\"]*\"/\"version\": \"${{ github.event.inputs.version }}\"/" app/ src-tauri/tauri.conf.json
8787
8888 - name : edit version (windows only)
8989 if : matrix.platform == 'windows-latest' # This must match the platform value defined above.
9090 run : |
91- $jsonContent = Get-Content -Path "src-tauri/tauri.conf.json" -Raw
91+ $jsonContent = Get-Content -Path "app/ src-tauri/tauri.conf.json" -Raw
9292 $jsonObject = $jsonContent | ConvertFrom-Json
9393 $jsonObject.version = "${{ github.event.inputs.version }}"
94- $jsonObject | ConvertTo-Json -Depth 10 | Set-Content -Path "src-tauri/tauri.conf.json"
94+ $jsonObject | ConvertTo-Json -Depth 10 | Set-Content -Path "app/ src-tauri/tauri.conf.json"
9595
9696 - uses : tauri-apps/tauri-action@v0
9797 env :
@@ -112,7 +112,7 @@ jobs:
112112 name : calculate sha256sum (linux only)
113113 if : matrix.platform == 'ubuntu-22.04' # This must match the platform value defined above.
114114 run : |
115- cd src-tauri/target/release/bundle/deb
115+ cd app/ src-tauri/target/release/bundle/deb
116116 sha256sum "Project Graph_${{ github.event.inputs.version }}_amd64.deb" | awk '{print $1}' > sha256sum.txt
117117 echo "hash=$(cat sha256sum.txt)" >> "$GITHUB_OUTPUT"
118118
@@ -160,15 +160,15 @@ jobs:
160160 - name : Rust cache
161161 uses : swatinem/rust-cache@v2
162162 with :
163- workspaces : " ./src-tauri -> target"
163+ workspaces : " ./app/ src-tauri -> target"
164164
165165 - name : edit version
166166 run : |
167- sed -i "s/\"version\": \"[^\"]*\"/\"version\": \"${{ github.event.inputs.version }}\"/" src-tauri/tauri.conf.json
167+ sed -i "s/\"version\": \"[^\"]*\"/\"version\": \"${{ github.event.inputs.version }}\"/" app/ src-tauri/tauri.conf.json
168168
169169 - name : setup sign
170170 run : |
171- cd src-tauri/gen/android
171+ cd app/ src-tauri/gen/android
172172 # create keystore.properties
173173 cat > keystore.properties <<EOF
174174 password=${{ secrets.ANDROID_RELEASE_PASSWORD }}
@@ -187,11 +187,11 @@ jobs:
187187
188188 - name : rename apk file
189189 run : |
190- cd src-tauri/gen/android/app/build/outputs/apk/universal/release
190+ cd app/ src-tauri/gen/android/app/build/outputs/apk/universal/release
191191 mv app-universal-release.apk Project.Graph_${{ github.event.inputs.version }}_universal-signed.apk
192192
193193 - name : upload
194- run : gh release upload v${{ github.event.inputs.version }} src-tauri/gen/android/app/build/outputs/apk/universal/release/Project.Graph_${{ github.event.inputs.version }}_universal-signed.apk --clobber
194+ run : gh release upload v${{ github.event.inputs.version }} app/ src-tauri/gen/android/app/build/outputs/apk/universal/release/Project.Graph_${{ github.event.inputs.version }}_universal-signed.apk --clobber
195195 env :
196196 GH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
197197
0 commit comments