@@ -161,46 +161,48 @@ _build-athena-common mode:
161161 # 4. Validates the package structure and dependencies
162162 # Running these in parallel saves significant time when packaging multiple modules
163163
164+ cd hermes
165+
164166 # Start all packaging operations in background processes (non-blocking)
165167 (
166168 echo " π¦ Packaging http-proxy module..."
167- target/ release/ hermes module package hermes / apps/ athena/ modules/ http-proxy/ lib/ manifest_module.json
169+ target/ release/ hermes module package apps/ athena/ modules/ http-proxy/ lib/ manifest_module.json
168170 ) &
169171 HTTP_PROXY_PKG_PID=$! # Capture PID for synchronization
170172
171173 (
172174 echo " π¦ Packaging rbac-registration-indexer module..."
173- target/ release/ hermes module package hermes / apps/ athena/ modules/ rbac-registration-indexer/ lib/ manifest_module.json
175+ target/ release/ hermes module package apps/ athena/ modules/ rbac-registration-indexer/ lib/ manifest_module.json
174176 ) &
175177 RBAC_INDEXER_PKG_PID=$! # Capture PID for synchronization
176178
177179 (
178180 echo " π¦ Packaging rbac-registration module..."
179- target/ release/ hermes module package hermes / apps/ athena/ modules/ rbac-registration/ lib/ manifest_module.json
181+ target/ release/ hermes module package apps/ athena/ modules/ rbac-registration/ lib/ manifest_module.json
180182 ) &
181183 RBAC_PKG_PID=$! # Capture PID for synchronization
182184
183185 (
184186 echo " π¦ Packaging staked-ada-indexer module..."
185- target/ release/ hermes module package hermes / apps/ athena/ modules/ staked-ada-indexer/ lib/ manifest_module.json
187+ target/ release/ hermes module package apps/ athena/ modules/ staked-ada-indexer/ lib/ manifest_module.json
186188 ) &
187189 STAKED_INDEXER_PKG_PID=$! # Capture PID for synchronization
188190
189191 (
190192 echo " π¦ Packaging staked-ada module..."
191- target/ release/ hermes module package hermes / apps/ athena/ modules/ staked-ada/ lib/ manifest_module.json
193+ target/ release/ hermes module package apps/ athena/ modules/ staked-ada/ lib/ manifest_module.json
192194 ) &
193195 STAKED_PKG_PID=$! # Capture PID for synchronization
194196
195197 (
196198 echo " π¦ Packaging auth module..."
197- target/ release/ hermes module package hermes / apps/ athena/ modules/ auth/ lib/ manifest_module.json
199+ target/ release/ hermes module package apps/ athena/ modules/ auth/ lib/ manifest_module.json
198200 ) &
199201 AUTH_PKG_PID=$! # Capture PID for synchronization
200202
201203 (
202204 echo " π¦ Packaging doc-sync module..."
203- target/ release/ hermes module package hermes / apps/ athena/ modules/ doc-sync/ lib/ manifest_module.json
205+ target/ release/ hermes module package apps/ athena/ modules/ doc-sync/ lib/ manifest_module.json
204206 ) &
205207 DOC_SYNC_PKG_PID=$! # Capture PID for synchronization
206208
@@ -230,16 +232,16 @@ _build-athena-common mode:
230232 echo " β
Module packaging complete (.hmod files created)"
231233
232234 echo " π¦ Packaging application bundle..."
233- echo " π Using manifest: hermes/ apps/athena/manifest_app.json"
235+ echo " π Using manifest: apps/athena/manifest_app.json"
234236
235237 # Step 3: Create final application package (.happ file)
236238 # The .happ file bundles all modules and application-level configuration
237- target/ release/ hermes app package hermes / apps/ athena/ manifest_app.json
239+ target/ release/ hermes app package apps/ athena/ manifest_app.json
238240 echo " β
Application packaging complete (.happ file created)"
239241
240242 echo " $SUCCESS_MSG"
241- echo " π¦ Application package: hermes/ apps/athena/athena.happ"
242- echo " π Package size: $(ls -lh hermes/ apps/athena/athena.happ | awk '{print $5}' 2>/dev/null || echo 'N/A')"
243+ echo " π¦ Application package: apps/athena/athena.happ"
244+ echo " π Package size: $(ls -lh apps/athena/athena.happ | awk '{print $5}' 2>/dev/null || echo 'N/A')"
243245 echo " $ASSETS_STATUS"
244246
245247# Build WASM modules with full web assets (production)
@@ -293,9 +295,11 @@ run-athena:
293295 echo " π Press Ctrl+C to stop"
294296 echo " "
295297
298+ cd hermes
299+
296300 # Execute the application with security sandboxing
297301 # HERMES_LOG_LEVEL="debug"
298- target/ release/ hermes run --untrusted hermes / apps/ athena/ athena.happ
302+ target/ release/ hermes run --untrusted apps/ athena/ athena.happ
299303
300304
301305
0 commit comments